parameters: (dataset)
return_statement: return dataset._variant_tensor
docstring: Returns a variant representing the given dataset.
  
    Args:
      dataset: A `tf.data.Dataset`.
  
    Returns:
      A scalar `tf.variant` tensor representing the given dataset.
docstring_summary: Returns a variant representing the given dataset.
docstring_tokens: Returns a variant representing the given dataset .
function: def to_variant(dataset):
    """Returns a variant representing the given dataset.
  
    Args:
      dataset: A `tf.data.Dataset`.
  
    Returns:
      A scalar `tf.variant` tensor representing the given dataset.
    """
    return dataset._variant_tensor
function_tokens: def to_variant ( dataset ) : return dataset . _variant_tensor