code: def dbg(*objects, file=sys.stderr, flush=True, **kwargs):
      "Helper function to print to stderr and flush"
      print(*objects, file=file, flush=flush, **kwargsf dbg(*objects, file=sys.stderr, flush=True, **kwargs):
      "Helper function to print to stderr and flush"
      print(*objects, file=file, flush=flush, **kwargs)
docs: Helper function to print to stderr and flush