code: def get_full_name(var):
      """Gets the full name of variable for name-based checkpoint compatiblity."""
      # pylint: disable=protected-access
      if not (
          isinstance(var, variables.Variable)
          or
          # Some objects do not subclass Variable but still act as one.
          resource_variable_ops.is_resource_variable(var)
      ):
          return ""
  
      if getattr(var, "_save_slice_info", None) is not None:
          # Use getattr because `var._save_slice_info` may be set as `None`.
          return var._save_slice_info.full_name
      else:
          return var._shared_name
  
file_path: tensorflow-upstream/tensorflow/python/checkpoint/util.py
imports: from tensorflow.core.protobuf import trackable_object_graph_pb2
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import trackable_utils
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 3 for calling a global function with example usage: get_full_name(var) and returns: str, var, var