code: def test_non_terminal_generic_events(queue_observer, event_name):
      queue_observer.started_event()
      getattr(queue_observer, event_name)("args", kwds="kwargs")
      queue_observer.join()
      assert (
          queue_observer._covered_observer.method_calls[1][0]
          == event_name
      )
      assert queue_observer._covered_observer.method_calls[1][1] == (
          "args",
      )
      assert queue_observer._covered_observer.method_calls[1][2] == {
          "kwds": "kwargs"
      }
  
file_path: sacred/tests/test_observers/test_queue_observer.py
imports: from collections import OrderedDict
  from sacred.observers.queue import QueueObserver
  from sacred import Experiment
  import mock
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_non_terminal_generic_events(queue_observer, event_name) without return types