code: def test_emitter_reentrance_allowed_when_blocked1():
      # Minimal re-entrance example
  
      e = EventEmitter(source=None, type="test")
      count = 0
  
      @e.connect
      def foo(x):
          nonlocal count
          count += 1
          with e.blocker():
              e()
  
      e()
      assert count == 1
  
imports: import unittest
  import copy
  import functools
  from vispy.util.event import Event, EventEmitter
  from vispy.testing import run_tests_if_main, assert_raises, assert_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_emitter_reentrance_allowed_when_blocked1() without return types