class_docstr: context manager version of trace(); can redirect the trace to a file
class_docstr_tok: ["context","manager","version","of","trace","(",")",";","can","redirect","the","trace","to","a","file"]
code: def __exit__(self, *exc_info):
      adapter.setLevel(self.old_level)
      if self.redirect:
          adapter.removeHandler(self.handler)
          adapter.addHandler(stderr_handler)
          if not self.file_is_stream:
              self.handler.close()
  
imports: import codecs
  import contextlib
  import locale
  import logging
  import math
  import os
  from functools import partial
  from typing import TextIO, Union
  import dill
label_desc: Use image node_id 3 for calling the TraceManager obj's underlying member method code with example usage: obj.__exit__() without return types