code: def _load_class(class_path, default):
      
      if class_path is None:
          return default
  
      component = class_path.rsplit('.', 1)
      result_processor = getattr(
          importlib.import_module(component[0]),
          component[1],
          default
      ) if len(component) > 1 else default
  
      return result_processor
docs: Loads the class from the class_path string