code: def _load_config(config_filepath: str) -> Dict[str, Any]:
          
          try:
              config: Dict[str, Any] = yaml.load(stream=open(config_filepath, "r"))
          except Exception as e:
              raise Exception(f"Invalid DAG Factory config file; err: {e}")
          return config
docs: Loads YAML config file to dictionary
  
          :returns: dict from YAML config file