code: def get_inverse_graphkeys():
      ret = {}
      for name in dir(tf.GraphKeys):
          if name.startswith("_"):
              continue
          if name in ["VARIABLES"]:  # will produce deprecated warning
              continue
          ret[getattr(tf.GraphKeys, name)] = "tf.GraphKeys.{}".format(
              name
          )
      return ret
  
file_path: tensorpack/tensorpack/tfutils/collection.py
imports: from contextlib import contextmanager
  from copy import copy
  import six
  from ..compat import tfv1
  from ..utils import logger
  from ..utils.argtools import memoized
label_desc: Use image node_id 4 for calling a global function with example usage: get_inverse_graphkeys() and returns: ret