class_docstr: Suppress stderr. Useful as OpenCV (and dependencies) can produce a lot of output.
class_docstr_tok: ["Suppress","stderr",".","Useful","as","OpenCV","(","and","dependencies",")","can","produce","a","lot","of","output","."]
code: def __exit__(self, *_):
      sys.stderr = self.old_stderr
      os.dup2(self.old_stderr_fileno, self.old_stderr_fileno_undup)
      os.close(self.old_stderr_fileno)
      self.errnull_file.close()
  
imports: from __future__ import annotations
  import os
  import sys
  import tempfile
  from collections.abc import Callable
  from typing import TYPE_CHECKING, Any
  import numpy
  from torch.utils.data import Dataset, IterableDataset
  from monai.utils.enums import ColorOrder
  from monai.utils.module import optional_import
label_desc: Use image node_id 2 for calling the SuppressStderr obj's underlying member method code with example usage: obj.__exit__() without return types