original_docstring: 
          Remove the child with the specified id.
  
          Args:
              child_id (uuid.UUID): unique id of the child
  
          Raises:
              IndexError: if the child was not found
          
docstring: Remove the child with the specified id.
docstring_tokens: Remove the child with the specified id .
code: def remove_child_by_id(self, child_id):
          """
          Remove the child with the specified id.
  
          Args:
              child_id (uuid.UUID): unique id of the child
  
          Raises:
              IndexError: if the child was not found
          """
          child = next((c for c in self.children if c.id == child_id), None)
          if child is not None:
              if child.status == Status.RUNNING:
                  child.stop(Status.INVALID)
              self.children.remove(child)
          else:
              raise IndexError('child was not found with the specified id [%s]' % child_id)
code_tokens: def remove_child_by_id ( self , child_id ) : child = next ( ( c for c in self . children if c . id == child_id ) , None ) if child is not None : if child . status == Status . RUNNING : child . stop ( Status . INVALID ) self . children . remove ( child ) else : raise IndexError ( 'child was not found with the specified id [%s]' % child_id )
short_docstring: Remove the child with the specified id.
short_docstring_tokens: Remove the child with the specified id .
comment: """
          Remove the child with the specified id.
  
          Args:
              child_id (uuid.UUID): unique id of the child
  
          Raises:
              IndexError: if the child was not found
          """