parameters: (stacked_tensors,
                              preconverted_value,
                              batch_size)
return_statement: return stacked_tensors
docstring: Converts a list of stacked tensors to a batch CompositeTensor.
docstring_summary: Converts a list of stacked tensors to a batch CompositeTensor.
docstring_tokens: Converts a list of stacked tensors to a batch CompositeTensor .
function: def _composite_from_tensors(stacked_tensors,
                              preconverted_value,
                              batch_size):
    """Converts a list of stacked tensors to a batch CompositeTensor."""
    if _should_expand_composite(preconverted_value):
      batch_type_spec = preconverted_value._type_spec._batch(batch_size)
      return batch_type_spec._from_compatible_tensor_list(stacked_tensors)
    return stacked_tensors
function_tokens: def _composite_from_tensors ( stacked_tensors , preconverted_value , batch_size ) : if _should_expand_composite ( preconverted_value ) : batch_type_spec = preconverted_value . _type_spec . _batch ( batch_size ) return batch_type_spec . _from_compatible_tensor_list ( stacked_tensors ) return stacked_tensors