def METHOD_NAME(self, name):
    if name in PYTHON_BUILTINS:
        raise KeyError
    try:
        return __import__(name)
    except ImportError:
        raise NameError(f"name '{name}' is not defined nor importable as module")