code: def to_sparse_tuple(sequence):
      r
      indices = np.asarray(list(zip([0]*len(sequence), range(len(sequence)))), dtype=np.int64)
      shape = np.asarray([1, len(sequence)], dtype=np.int64)
      return indices, sequence, shape
docs: r"""Creates a sparse representention of ``sequence``.
          Returns a tuple with (indices, values, shape)