code: def load_class(full_class_string, verbose=False, silent=False):
      
      if not isinstance(full_class_string, str):
          if not silent:
              print("Error, loadClass: input not a string: %s" % str(full_class_string))
          return None
      if len(full_class_string) == 0:  # pylint: disable=len-as-condition
          if not silent:
              print("Error, loadClass: empty string")
          return None
      class_data = full_class_string.split(".")
      module_path = ".".join(class_data[:-1])
      class_str = class_data[-1]
      try:
          module_ = importlib.import_module(module_path)
          # Finally, we retrieve the Class
          return getattr(module_, class_str)
      except AttributeError:
          return None
      except Exception:
          raise
docs: dynamically load a class from a string