code: def _as_operation(op_or_tensor):
      if isinstance(op_or_tensor, tensor_lib.Tensor):
          return op_or_tensor.op
      return op_or_tensor
  
file_path: tensorflow/tensorflow/python/eager/lift_to_graph.py
imports: import collections
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import op_selector
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.util import compat
  from tensorflow.python.util import object_identity
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 for calling a global function with example usage: _as_operation(op_or_tensor) and returns: op_or_tensor, op_or_tensor