parameters: (term)
docstring: Check that a CNF term in JSON representation is valid.
docstring_summary: Check that a CNF term in JSON representation is valid.
docstring_tokens: Check that a CNF term in JSON representation is valid .
function: def validate_term(term):
    """Check that a CNF term in JSON representation is valid."""
    if (sum(['func' in term and 'params' in term, 'number' in term, 'var' in term
            ]) != 1):
      raise_error_with_keys('term', term)
  
    if 'func' in term:
      for param in term['params']:
        validate_term(param)
function_tokens: def validate_term ( term ) : if ( sum ( [ 'func' in term and 'params' in term , 'number' in term , 'var' in term ] ) != 1 ) : raise_error_with_keys ( 'term' , term ) if 'func' in term : for param in term [ 'params' ] : validate_term ( param )