code: def _using_stdout(self):
          
          if WINDOWS and colorama:
              # Then self.stream is an AnsiToWin32 object.
              return self.stream.wrapped is sys.stdout
  
          return self.stream is sys.stdout
docs: Return whether the handler is using sys.stdout.