parameters: (dataset)
return_statement: return inputs, targets, sample_weight
docstring: Extract a tuple of tensors `inputs, targets, sample_weight` from a dataset.
  
    Args:
      dataset: Dataset instance.
  
    Returns:
      Tuple of tensors `x, y, weights`. `y` and `weights` entry may be None.
docstring_summary: Extract a tuple of tensors `inputs, targets, sample_weight` from a dataset.
docstring_tokens: Extract a tuple of tensors inputs targets sample_weight from a dataset .
function: def extract_tensors_from_dataset(dataset):
    """Extract a tuple of tensors `inputs, targets, sample_weight` from a dataset.
  
    Args:
      dataset: Dataset instance.
  
    Returns:
      Tuple of tensors `x, y, weights`. `y` and `weights` entry may be None.
    """
    iterator = get_iterator(dataset)
    inputs, targets, sample_weight = unpack_iterator_input(iterator)
    return inputs, targets, sample_weight
function_tokens: def extract_tensors_from_dataset ( dataset ) : iterator = get_iterator ( dataset ) inputs , targets , sample_weight = unpack_iterator_input ( iterator ) return inputs , targets , sample_weight