parameters: (ok, *args)
return_statement: return None
docstring: Returns None / arg / (args,...) if ok.
docstring_summary: Returns None / arg / (args,...) if ok.
docstring_tokens: Returns None / arg / ( args ... ) if ok .
function: def ValueErrorOnFalse(ok, *args):
    """Returns None / arg / (args,...) if ok."""
    if not isinstance(ok, bool):
      raise TypeError('Use ValueErrorOnFalse only on bool return value')
    if not ok:
      raise ValueError('CLIF wrapped call returned False')
    # Plain return args will turn 1 into (1,)  and None into () which is unwanted.
    if args:
      return args if len(args) > 1 else args[0]
    return None
function_tokens: def ValueErrorOnFalse ( ok , * args ) : if not isinstance ( ok , bool ) : raise TypeError ( 'Use ValueErrorOnFalse only on bool return value' ) if not ok : raise ValueError ( 'CLIF wrapped call returned False' ) # Plain return args will turn 1 into (1,)  and None into () which is unwanted. if args : return args if len ( args ) > 1 else args [ 0 ] return None