docs: def is_a_tty(stream=sys.stdout):
      ''' Detect terminal or something else, such as output redirection.
  
          Returns:
              Boolean, None: is tty or None if not found.
      '''
      result = stream.isatty() if hasattr(stream, 'isatty') else None
      log.debug(result)
      return result