code: def _import_sub_module(module, name):
      
      module = __import__(module.__name__ + "." + name)
      for level in name.split("."):
          module = getattr(module, level)
      return module
docs: import_sub_module will mimic the function of importlib.import_module