original_docstring: 
          Remove the child behaviour from this composite.
  
          Args:
              child (:class:`~py_trees.behaviour.Behaviour`): child to delete
  
          Returns:
              :obj:`int`: index of the child that was removed
  
          .. todo:: Error handling for when child is not in this list
          
docstring: Remove the child behaviour from this composite.
docstring_tokens: Remove the child behaviour from this composite .
code: def remove_child(self, child):
          """
          Remove the child behaviour from this composite.
  
          Args:
              child (:class:`~py_trees.behaviour.Behaviour`): child to delete
  
          Returns:
              :obj:`int`: index of the child that was removed
  
          .. todo:: Error handling for when child is not in this list
          """
          if child.status == Status.RUNNING:
              child.stop(Status.INVALID)
          child_index = self.children.index(child)
          self.children.remove(child)
          return child_index
code_tokens: def remove_child ( self , child ) : if child . status == Status . RUNNING : child . stop ( Status . INVALID ) child_index = self . children . index ( child ) self . children . remove ( child ) return child_index
short_docstring: Remove the child behaviour from this composite.
short_docstring_tokens: Remove the child behaviour from this composite .
comment: """
          Remove the child behaviour from this composite.
  
          Args:
              child (:class:`~py_trees.behaviour.Behaviour`): child to delete
  
          Returns:
              :obj:`int`: index of the child that was removed
  
          .. todo:: Error handling for when child is not in this list
          """