class_docstr: Produces a sequence that's the concatenation of multiple other sequences, without
  copying the elements.
  
  This assumes that the inner sequence never changes. If it does, the results
  are undefined.
class_docstr_tok: ["Produces","a","sequence","that","'s","the","concatenation","of","multiple","other","sequences",",","without","copying","the","elements",".","This","assumes","that","the","inner","sequence","never","changes",".","If","it","does",",","the","results","are","undefined","."]
code: def __init__(self, *sequences: Sequence):
      self.sequences = sequences
      self.cumulative_sequence_lengths = [0]
      for sequence in sequences:
          self.cumulative_sequence_lengths.append(
              self.cumulative_sequence_lengths[-1] + len(sequence)
          )
  
file_path: allennlp/allennlp/common/sequences.py
imports: import bisect
  import random
  from collections import abc
  from typing import Sequence, Optional, Union
label_desc: Use image node_id 1 to create a new ConcatenatedSequence object from inherited base classes: abc with example: obj = ConcatenatedSequence()