code: def add_from_child(self, resource, **kwargs):
          
  
          new_resource = self.add(
              resource.member_name, resource.collection_name, **kwargs)
          for child in resource.children:
              new_resource.add_from_child(child, **kwargs)
docs: Add a resource with its all children resources to the current
          resource.