docstr: Sets the a temporary threshold for what messages will be logged.
docstr_tok: ["Sets","the","a","temporary","threshold","for","what","messages","will","be","logged","."]
code: def temp_verbosity(self, verbosity_level):
      """Sets the a temporary threshold for what messages will be logged."""
  
      if self._logger is not None:
          old_verbosity = self.get_verbosity()
  
          try:
              self.set_verbosity(verbosity_level)
              yield
  
          finally:
              self.set_verbosity(old_verbosity)
  
      else:
          try:
              yield
  
          finally:
              pass
  
imports: import enum
  import logging
  import sys
  import threading
  import warnings
  from contextlib import contextmanager
  from logging.handlers import MemoryHandler
  from nemo.constants import NEMO_ENV_VARNAME_REDIRECT_LOGS_TO_STDERR, NEMO_ENV_VARNAME_TESTING
  from nemo.utils.env_var_parsing import get_envbool
  from nemo.utils.formatters.base import BaseNeMoFormatter, DebugNeMoFormatter
  from nemo.utils.get_rank import is_global_rank_zero
  from nemo.utils.metaclasses import Singleton
label_desc: Use image node_id 14 for calling the Logger obj's underlying member method code with example usage: obj.temp_verbosity(verbosity_level) without return types