class_docstr: Allowed patching a stream into the logger.
  Used for capturing and logging stdin and stderr when running in development mode pseudo worker.
class_docstr_tok: ["Allowed","patching","a","stream","into","the","logger",".","Used","for","capturing","and","logging","stdin","and","stderr","when","running","in","development","mode","pseudo","worker","."]
code: def _test_lr_flush(self):
      if not self.cr_flush_period:
          return
      if time() - self._lf_last_flush > self.cr_flush_period:
          self._force_lf_flush = True
          self._lf_last_flush = time()
  
imports: import logging
  import sys
  from time import time
  from ..binding.frameworks import _patched_call
  from ..config import running_remotely, config, DEBUG_SIMULATE_REMOTE_TASK
  from ..utilities.process.mp import ForkSafeRLock
label_desc: Use image node_id 5 for calling the PrintPatchLogger obj's underlying member method code with example usage: obj._test_lr_flush() without return types