parameters: (x)
docstring: Identity op that recognizes `TensorArray`, `Operation`, and `Tensor`.
docstring_summary: Identity op that recognizes `TensorArray`, `Operation`, and `Tensor`.
docstring_tokens: Identity op that recognizes TensorArray Operation and Tensor .
function: def _identity(x):
    """Identity op that recognizes `TensorArray`, `Operation`, and `Tensor`."""
    if isinstance(x, tensor_array_ops.TensorArray):
      return x.identity()
    elif isinstance(x, ops.Operation):
      return control_flow_ops.group(x)
    elif context.executing_eagerly() and x is None:
      return None
    else:
      return array_ops.identity(x)
function_tokens: def _identity ( x ) : if isinstance ( x , tensor_array_ops . TensorArray ) : return x . identity ( ) elif isinstance ( x , ops . Operation ) : return control_flow_ops . group ( x ) elif context . executing_eagerly ( ) and x is None : return None else : return array_ops . identity ( x )