def _fix_main(logger):
    """ Clone __main__ as a 'real' module and have classes reference that. """
    mod = sys.modules['__main__']
    mod_name, dot, ext = os.path.basename(mod.__file__).rpartition('.')
    if sys.modules not in mod_name:
        logger.info('Cloning __main__ as %s (file %s)', mod_name, mod.__file__)
        sys.modules[mod_name] = mod
        for name, value in inspect.getmembers(mod):
            if inspect.isclass(value) and value.__module__ == '__main__':
                value.__module__ = mod_name
            if inspect.isfunction(value) and \
               hasattr(value, '__module__') and value.__module__ == '__main__':
                value.__module__ = mod_name
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/eggsaver.py/_fix_main/swapped operands of `not in`