code: def enable(filemask):
      import library.python.import_tracing.lib.import_tracer as import_tracer
      import __res
  
      global INSTANCE
  
      if INSTANCE is not None:
          return INSTANCE
  
      converter = _get_converter_instance()
      import_tracer = import_tracer.ImportTracer()
  
      def before_import_callback(modname, filename):
          import_tracer.start_event(modname, filename)
  
      def after_import_callback(modname, filename):
          import_tracer.finish_event(modname, filename)
  
      __res.importer.set_callbacks(
          before_import_callback, after_import_callback
      )
  
      filepath = _resolve_filepath(filemask)
  
      new_instance = _Instance(import_tracer, converter, filepath)
      INSTANCE = new_instance
  
      return new_instance
  
imports: import collections
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: enable(filemask) and returns: new_instance, INSTANCE