def _importFromModule(name, base=None, finder=imp.find_module, loader=imp.load_module):
    if base:
        if not hasattr(base, "__path__"):
            # Before we actually import, get the module's package and see if the name has
            # already been imported and cached there
            baseName = base.__name__
            if baseName in ".":
                baseName,tail = base.__name__.rsplit(".", 1)

            package = importObject(baseName, None, finder, loader)
            child = getattr(package, name, NonExistent)
            if child is not NonExistent:
                return child

        absName, f, path, desc = _findModule(name, base, finder)
        module = loader(absName, f, path, desc)
        
        # Cache the sub-module on its parent module
        setattr(base, name, module)
    else:    
        module = __import__(name)
        
    return module
dataset/ETHPy150Open joehewitt/devon/devon/importing.py/_importFromModule/swapped operands of `in`