code: def parse_config_partial(
      config_dict: Any,
  ) -> Tuple[
      Dict[str, EntitySchema],
      List[RelationSchema],
      str,
      List[str],
      bool,
  ]:
      entities_config = config_dict.get("entities")
      relations_config = config_dict.get("relations")
      entity_path = config_dict.get("entity_path")
      edge_paths = config_dict.get("edge_paths")
      dynamic_relations = config_dict.get("dynamic_relations", False)
      if not isinstance(entities_config, dict):
          raise TypeError("Config entities is not of type dict")
      if any(not isinstance(k, str) for k in entities_config.keys()):
          raise TypeError(
              "Config entities has some keys that are not of type str"
          )
      if not isinstance(relations_config, list):
          raise TypeError("Config relations is not of type list")
      if not isinstance(entity_path, str):
          raise TypeError("Config entity_path is not of type str")
      if not isinstance(edge_paths, list):
          raise TypeError("Config edge_paths is not of type list")
      if any(not isinstance(p, str) for p in edge_paths):
          raise TypeError(
              "Config edge_paths has some items that are not of type str"
          )
      if not isinstance(dynamic_relations, bool):
          raise TypeError(
              "Config dynamic_relations is not of type bool"
          )
  
      entities: Dict[str, EntitySchema] = {}
      relations: List[RelationSchema] = []
      for entity, entity_config in entities_config.items():
          entities[entity] = EntitySchema.from_dict(entity_config)
      for relation in relations_config:
          relations.append(RelationSchema.from_dict(relation))
  
      return (
          entities,
          relations,
          entity_path,
          edge_paths,
          dynamic_relations,
      )
  
imports: import datetime
  import random
  from abc import ABC, abstractmethod
  from contextlib import ExitStack
  from pathlib import Path
  from typing import Any, Counter, Dict, Iterable, List, Optional, Tuple
  import torch
  from torchbiggraph.config import EntitySchema, RelationSchema
  from torchbiggraph.converters.dictionary import Dictionary
  from torchbiggraph.edgelist import EdgeList
  from torchbiggraph.entitylist import EntityList
  from torchbiggraph.graph_storages import AbstractEdgeAppender, AbstractEdgeStorage, AbstractEntityStorage, AbstractRelationTypeStorage, EDGE_STORAGES, ENTITY_STORAGES, RELATION_TYPE_STORAGES
  from torchbiggraph.types import UNPARTITIONED
label_desc: Use image node_id 8 for calling a global function with example usage: parse_config_partial(config_dict) and returns: entities,  relations,  entity_path,  edge_paths,  dynamic_relations