parameters: (variant, structure)
return_statement: return _VariantDataset(variant, structure)
docstring: Constructs a dataset from the given variant and structure.
  
    Args:
      variant: A scalar `tf.variant` tensor representing a dataset.
      structure: A `tf.data.experimental.Structure` object representing the
        structure of each element in the dataset.
  
    Returns:
      A `tf.data.Dataset` instance.
docstring_summary: Constructs a dataset from the given variant and structure.
docstring_tokens: Constructs a dataset from the given variant and structure .
function: def from_variant(variant, structure):
    """Constructs a dataset from the given variant and structure.
  
    Args:
      variant: A scalar `tf.variant` tensor representing a dataset.
      structure: A `tf.data.experimental.Structure` object representing the
        structure of each element in the dataset.
  
    Returns:
      A `tf.data.Dataset` instance.
    """
    return _VariantDataset(variant, structure)
function_tokens: def from_variant ( variant , structure ) : return _VariantDataset ( variant , structure )