code: def _open_file_context(file_like, appendmat, mode="rb"):
      f, opened = _open_file(file_like, appendmat, mode)
      try:
          yield f
      finally:
          if opened:
              f.close()
  
file_path: catboost/contrib/python/scipy/py3/scipy/io/matlab/mio.py
imports: from contextlib import contextmanager
  from .miobase import get_matfile_version, docfiller
  from .mio4 import MatFile4Reader, MatFile4Writer
  from .mio5 import MatFile5Reader, MatFile5Writer
label_desc: Use image node_id 1 for calling a global function with example usage: _open_file_context(file_like, appendmat, mode) without return types