code: def print(cls, *args, **kwargs):
          
          # pylint: disable=protected-access
          with _shared._PRINT_LOCK:
              print(*args, **kwargs)
              _sys.stdout.flush()
docs: Print synchronized.