code: def _as_operation(op_or_tensor):
      if isinstance(op_or_tensor, tensor_lib.Tensor):
          return op_or_tensor.op
      return op_or_tensor
  
imports: from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 13 for calling a global function with example usage: _as_operation(op_or_tensor) and returns: op_or_tensor, op_or_tensor