code: def get_edge_types(schema_map):
      """Utility method to extract edge_typename -> edge_type mappings
      as defined by the input schema
  
      Parameters:
      -----------
      schema_map : dictionary
          Input schema from which the edge_typename -> edge_typeid
          dictionary is created.
  
      Returns:
      --------
      dictionary
          with keys as edge type names and values as ids (integers)
      list
          list of etype name strings
      dictionary
          with keys as etype ids (integers) and values as edge type names
      """
      etypes = schema_map[constants.STR_EDGE_TYPE]
      etype_etypeid_map = {e: i for i, e in enumerate(etypes)}
      etypeid_etype_map = {i: e for i, e in enumerate(etypes)}
      return etype_etypeid_map, etypes, etypeid_etype_map
  
imports: import json
  import logging
  import os
  from itertools import cycle
  import constants
  import dgl
  import numpy
  import psutil
  import pyarrow
  import torch
  from dgl.distributed.partition import _dump_part_config
  from pyarrow import csv
label_desc: Use image node_id 5 for calling a global function with example usage: get_edge_types(schema_map) and returns: etype_etypeid_map,  etypes,  etypeid_etype_map