code: def _torf(args):
      """Return True if all args are True, False if they
      are all False, else None.
  
      >>> from sympy.core.logic import _torf
      >>> _torf((True, True))
      True
      >>> _torf((False, False))
      False
      >>> _torf((True, False))
      """
      sawT = sawF = False
      for a in args:
          if a is True:
              if sawF:
                  return
              sawT = True
          elif a is False:
              if sawT:
                  return
              sawF = True
          else:
              return
      return sawT
  
imports: from __future__ import annotations
  from typing import Optional
label_desc: Use image node_id 1 for calling a global function with example usage: _torf(args) and returns: sawT