code: def __buffer_writer_close_patch(self):
      self._trains_org_close()
      # noinspection PyBroadException
      try:
          self._trains_close_cb(self)
      except Exception:
          pass
  
file_path: clearml/clearml/utilities/lowlevel/file_access.py
imports: import os
  import sys
  from functools import partial
  import six
  from typing import Optional, Any, Callable
label_desc: Use image node_id 1 for calling a global function with example usage: __buffer_writer_close_patch() without return types