code: def new_child(self, term, value, **kwargs):
          
  
          tc = self.doc.get_term_class(term.lower())
  
          c = tc(term, str(value) if value is not None else None,
                 parent=self, doc=self.doc, section=self.section).new_children(**kwargs)
  
          c.term_value_name = self.doc.decl_terms.get(c.join, {}).get('termvaluename', c.term_value_name)
  
          assert not c.term_is("*.Section")
          self.children.append(c)
          return c
docs: Create a new term and add it to this term as a child. Creates grandchildren from the kwargs.
  
          :param term: term name. Just the record term
          :param term: Value to assign to the term
          :param term: Term properties, which create children of the child term.