code: def __init__(self, sentences):
      sentences = tuple(sentences)
      for sentence in sentences:
          if not isinstance(sentence, Sentence):
              raise TypeError(
                  "Only instances of class 'Sentence' are allowed."
              )
  
      self._sentences = sentences
  
file_path: sumy/sumy/models/dom/_paragraph.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  from itertools import chain
  from ..._compat import unicode_compatible
  from ...utils import cached_property
  from ._sentence import Sentence
label_desc: Use image node_id 1 to create a new Paragraph object from inherited base classes: object with example: obj = Paragraph(sentences)