code: def extract_local_name(key, prefix=None):
      """Returns the substring after the "/.ATTIBUTES/" in the checkpoint key."""
      # "local name" refers to the the keys of `Trackable._serialize_to_tensors.`
      prefix = prefix or ""
      search_key = OBJECT_ATTRIBUTES_NAME + "/" + prefix
      # If checkpoint is saved from TF1, return key as is.
      try:
          return key[key.index(search_key) + len(search_key) :]
      except ValueError:
          return key
  
file_path: tensorflow/tensorflow/python/trackable/trackable_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
label_desc: Use image node_id 7 for calling a global function with example usage: extract_local_name(key, prefix) and returns: key, key