code: def to_schema(self):
          
          schema = self._base_schema()
          schema.update(self._root_node.to_schema())
          return schema
docs: Generate a schema based on previous inputs.
  
          :rtype: ``dict``