code: def get_module(module_abs_import):
      
      logger.debug("starting")
      logger.debug(f"loading module {module_abs_import}")
      try:
          imported_module = importlib.import_module(module_abs_import)
          logger.debug("done")
          return imported_module
      except ModuleNotFoundError as err:
          msg = ("The module doesn't exist. Looking for a file like this: "
                 f"{module_abs_import}")
  
          extended_msg = (f"{module_abs_import}.py should be in your working "
                          "dir or it should be installed to the python path."
                          "\nIf you have 'package.sub.mod' your current working "
                          "dir should contain ./package/sub/mod.py\n"
                          "If you specified 'mymodulename', your current "
                          "working dir should contain ./mymodulename.py\n"
                          "If the module is not in your current working dir, it "
                          "must exist in your current python path - so you "
                          "should have run pip install or setup.py")
          logger.error(msg)
          raise PyModuleNotFoundError(extended_msg) from err
docs: Use importlib to get the module dynamically.
  
      Get instance of the module specified by the module_abs_import.
      This means that module_abs_import must be resolvable from this package.
  
      Args:
          module_abs_import: string. Absolute name of module to import.
  
      Raises:
          PyModuleNotFoundError: if module not found.