code: def get_events(self, close_not_finished=False):
      end_time = self._get_current_time_from_start()
  
      for event in self.events.values():
          if close_not_finished and event.end_time is None:
              yield events.Event(
                  modname=event.modname,
                  filename=event.filename,
                  tid=event.tid,
                  start_time=event.start_time,
                  end_time=end_time,
              )
          else:
              yield event
  
file_path: catboost/library/python/import_tracing/lib/import_tracer.py
imports: import threading
  import time
  import collections
  import library.python.import_tracing.lib.event
  import library.python.import_tracing.lib.constants
label_desc: Use image node_id 4 for calling the ImportTracer obj's underlying member method code with example usage: obj.get_events(close_not_finished) without return types