code: def safe_load(modname: str) -> Union[None, str]:
      
      try:
          importlib.import_module(modname)
          return None
      except Exception as ex:
          logging.error("Failed to import module: %s", modname)
          msg, _ = backtrace.output_traceback(ex)
          return msg
docs: Load a module, logging errors instead of dying if it fails to load.
  
      :return: None when import was successful. String is the first line of the error message