code: def load_class_by_path(taskpath):
      
  
      return getattr(
          importlib.import_module(
              re.sub(
                  r"\.[^.]+$",
                  "",
                  taskpath)),
          re.sub(
              r"^.*\.",
              "",
              taskpath))
docs: Given a taskpath, returns the main task class.