code: def process_version_map(version_map):
      # version map maps full schema name to
      # list of upgraders. Since we only have
      # the name of the schema (aka no overload)
      # we want to first process the map to make
      # the key lookup easier. After this it will be:
      # Dict[schema_name, Dict[overload, List[schema]]]
  
      output = defaultdict(dict)
      for key, entries in version_map.items():
          operator_name = key.split(".")[0]
          schema_entries = [
              parse_schema(entry.old_schema) for entry in entries
          ]
          output[operator_name][key] = schema_entries
      return output
  
file_path: pytorch/test/forward_backward_compatibility/check_forward_backward_compatibility.py
imports: import argparse
  import datetime
  import re
  import sys
  import warnings
  from collections import defaultdict
  import torch
  from torch._C import parse_schema
label_desc: Use image node_id 5 for calling a global function with example usage: process_version_map(version_map) and returns: output