parameters: (apiversion, codegen_dir)
return_statement: return curapi_hash, apis_hash[apiversion]
docstring: Return current C API checksum and the recorded checksum for the given
      version of the C API version.
docstring_summary: Return current C API checksum and the recorded checksum for the given
      version of the C API version.
docstring_tokens: Return current C API checksum and the recorded checksum for the given version of the C API version .
function: def get_api_versions(apiversion, codegen_dir):
      """Return current C API checksum and the recorded checksum for the given
      version of the C API version."""
      api_files = [join(codegen_dir, 'numpy_api_order.txt'),
                   join(codegen_dir, 'ufunc_api_order.txt')]
  
      # 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]
function_tokens: def get_api_versions ( apiversion , codegen_dir ) : api_files = [ join ( codegen_dir , 'numpy_api_order.txt' ) , join ( codegen_dir , 'ufunc_api_order.txt' ) ] # 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 ]