code: def no_bar(self: Learner):
      "Context manager that deactivates the use of progress bars"
      has_progress = hasattr(self, "progress")
      if has_progress:
          self.remove_cb(self.progress)
      try:
          yield self
      finally:
          if has_progress:
              self.add_cb(ProgressCallback())
  
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 1 for calling a global function with example usage: no_bar() without return types