code: def _disposing(disposable):
      """
      Ensure the IDisposable object is disposed of when the enclosed block exits.
      """
      try:
          yield disposable
      finally:
          disposable.Dispose()
  
imports: from contextlib import contextmanager
  import os
  from .None import cdata
  from .tester import Tester, CDataExporter, CDataImporter
  from .util import run_cmd, log
  from ..utils.source import ARROW_ROOT_DEFAULT
label_desc: Use image node_id 2 for calling a global function with example usage: _disposing(disposable) without return types