code: def _get_handle_deleter(graph, deleter_key, handle):
      """Return a deletion subgraph for this handle."""
      result = graph._handle_deleters.get(deleter_key)
      if result is None:
          # Create deleter if we haven't done it.
          handle_device = TensorHandle._get_device_name(handle)
          with graph.as_default(), graph.device(handle_device):
              holder = array_ops.placeholder(dtypes.string)
              deleter = gen_data_flow_ops.delete_session_tensor(holder)
          result = (holder, deleter)
          graph._handle_deleters[deleter_key] = result
      return result
  
imports: import numpy
  from tensorflow.core.framework import resource_handle_pb2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.framework import device
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_data_flow_ops
  from tensorflow.python.util import compat
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 9 for calling a global function with example usage: _get_handle_deleter(graph, deleter_key, handle) and returns: result