code: def has_valid_upgraders(schema, version_map):
      # we want to parse through the map to find if
      # the schema has valid upgraders. Since the
      # version map has entry for each overload
      # we need to do some ugly parsing.
  
      # the name of the operator
      schema_name = schema.name
  
      if schema_name not in version_map:
          return False
  
      entries = version_map[schema_name]
  
      possible_overloads = []
      possible_schemas = []
      for key, upgrader_schema_entries in entries.items():
          possible_overloads.append(key)
          possible_schemas.extend(upgrader_schema_entries)
  
      # let's make sure this existing schema is part of possible
      # schemas
      for old_schema in possible_schemas:
          if old_schema == schema:
              return True
  
      return False
  
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 2 for calling a global function with example usage: has_valid_upgraders(schema, version_map) and returns: False, False, True