code: def __exit__(self, exc_type, exc_val, exc_tb):
      self.file.__exit__(exc_type, exc_val, exc_tb)
      # set back stdout
      sys.stdout = self.stdout
  
imports: import functools
  import io
  import os
  import sys
  import textwrap
  import weakref
  from typing import List, Callable, Type
  from ..typing import OperandType, TileableType, SessionType
  from .context import Context
label_desc: Use image node_id 3 for calling the _LogWrapper obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types