code: def get_api_versions(apiversion, codegen_dir):
      """
      Return current C API checksum and the recorded checksum.
  
      Return current C API checksum and the recorded checksum for the given
      version of the C API version.
  
      """
      # Compute the hash of the current API as defined in the .txt files in
      # code_generators
      sys.path.insert(0, codegen_dir)
      try:
          m = __import__("genapi")
          numpy_api = __import__("numpy_api")
          curapi_hash = m.fullapi_hash(numpy_api.full_api)
          apis_hash = m.get_versions_hash()
      finally:
          del sys.path[0]
  
      return curapi_hash, apis_hash[apiversion]
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/setup_common.py
imports: import copy
  import pathlib
  import sys
  import textwrap
  from numpy.distutils.misc_util import mingw32
label_desc: Use image node_id 1 for calling a global function with example usage: get_api_versions(apiversion, codegen_dir) and returns: curapi_hash,  apis_hash