<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wrap_sequence(sequence, books=None, tensor_shape=None):
 """Creates an input layer representing the given sequence of tensors. Args: sequence: A sequence of tensors. books: The bookkeeper. tensor_shape: An optional shape that will be set on the Tensor or verified to match the tensor. Returns: A layer. """

  if books is None:
    books = bookkeeper.for_default_graph()
  my_sequence = [
      wrap(t, books=books, tensor_shape=tensor_shape) for t in sequence]
  return Layer(books, sequence=my_sequence, name=my_sequence[0].name)