parameters: (x)
return_statement: return isinstance(x, tensor_types)
docstring: Check for tensor types.
    Check whether an object is a tensor. Equivalent to
    `isinstance(x, [tf.Tensor, tf.SparseTensor, tf.Variable])`.
  
    Args:
      x: An python object to check.
  
    Returns:
      `True` if `x` is a tensor, `False` if not.
docstring_summary: Check for tensor types.
    Check whether an object is a tensor. Equivalent to
    `isinstance(x, [tf.Tensor, tf.SparseTensor, tf.Variable])`.
docstring_tokens: Check for tensor types . Check whether an object is a tensor . Equivalent to isinstance ( x [ tf . Tensor tf . SparseTensor tf . Variable ] ) .
function: def is_tensor(x):
    """Check for tensor types.
    Check whether an object is a tensor. Equivalent to
    `isinstance(x, [tf.Tensor, tf.SparseTensor, tf.Variable])`.
  
    Args:
      x: An python object to check.
  
    Returns:
      `True` if `x` is a tensor, `False` if not.
    """
    tensor_types = (ops.Tensor, ops.SparseTensor, variables.Variable)
    return isinstance(x, tensor_types)
function_tokens: def is_tensor ( x ) : tensor_types = ( ops . Tensor , ops . SparseTensor , variables . Variable ) return isinstance ( x , tensor_types )