code: def write_error(*args, **kwargs):
      
      if _logger:
          kwargs.pop("end", None)
          kwargs.pop("file", None)
          _logger.error(*args, **kwargs)
      else:
          print(*args, file=sys.stderr, **kwargs)
docs: Redirectable wrapper for print sys.stderr statements.