code: def load_class(path):
      
      class_data = path.split(".")
      if len(class_data) < 2:
          raise ValueError(
              "You need to pass a valid path like mymodule.provider_class")
      module_path = ".".join(class_data[:-1])
      class_str = class_data[-1]
      module = importlib.import_module(module_path)
      return getattr(module, class_str)
docs: Load a class at runtime given a full path.
  
      Example of the path: mypkg.mysubpkg.myclass