code: def add_subsegment(self, subsegment):
          
          self._check_ended()
          subsegment.parent_id = self.id
          self.subsegments.append(subsegment)
docs: Add input subsegment as a child subsegment.