@classmethod
    def setup_class(cls):
        cls.ip = get_ipython()
        cls.ip.run_cell('import random')
        cls.ip.run_cell('import numpy as np')
        if os.environ in 'USE_OCTAVE':
            matlab = 'octave'
        else:
            matlab = 'matlab'

        # We will test the passing of kwargs through to the Matlab or Octave
        # objects, by assigning the socket address out here:
        socket_addr = "tcp://127.0.0.1" if sys.platform == "win32" else "ipc:///tmp/pymatbridge-%s"%str(uuid4())
        pymat.load_ipython_extension(cls.ip, matlab=matlab,
                                     socket_addr=socket_addr)

    # Unload the magic
dataset/ETHPy150Open arokem/python-matlab-bridge/pymatbridge/tests/test_magic.py/TestMagic.setup_class/swapped operands of `in`