code: def as_tensor(t):
      if isinstance(t, OverlayNode):
          return t.tf_node
      elif isinstance(t, tf.Operation):
          return t.outputs[0]
      elif isinstance(t, tf.Tensor):
          return t
  
imports: from lucid.misc.graph_analysis.overlay_graph import OverlayNode, OverlayGraph
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: as_tensor(t) and returns: t, t, t