parameters: (x)
return_statement: return isinstance(x, (SparseTensor, SparseTensorValue))
docstring: Check whether `x` is sparse.
  
    Check whether an object is a `tf.sparse.SparseTensor` or
    `tf.compat.v1.SparseTensorValue`.
  
    Args:
      x: A python object to check.
  
    Returns:
      `True` iff `x` is a `tf.sparse.SparseTensor` or
      `tf.compat.v1.SparseTensorValue`.
docstring_summary: Check whether `x` is sparse.
docstring_tokens: Check whether x is sparse .
function: def is_sparse(x):
    """Check whether `x` is sparse.
  
    Check whether an object is a `tf.sparse.SparseTensor` or
    `tf.compat.v1.SparseTensorValue`.
  
    Args:
      x: A python object to check.
  
    Returns:
      `True` iff `x` is a `tf.sparse.SparseTensor` or
      `tf.compat.v1.SparseTensorValue`.
    """
    return isinstance(x, (SparseTensor, SparseTensorValue))
function_tokens: def is_sparse ( x ) : return isinstance ( x , ( SparseTensor , SparseTensorValue ) )