code: def test_signal_proxy_slot_block(qapp):
      """Test the block mode of SignalProxy with `signal` and `slot`"""
      sender = Sender(parent=qapp)
      receiver = Receiver(parent=qapp)
      proxy = SignalProxy(
          sender.signalSend,
          delay=0.0,
          rateLimit=0.6,
          slot=receiver.slotReceive,
          threadSafe=False,
      )
  
      assert proxy.blockSignal is False
      assert proxy is not None
      assert sender is not None
      assert receiver is not None
  
      with proxy.block():
          sender.signalSend.emit()
          sender.signalSend.emit()
          sender.signalSend.emit()
          proxy.flush()
          qapp.processEvents(
              QtCore.QEventLoop.ProcessEventsFlag.AllEvents, 10
          )
  
          assert receiver.counter == 0
  
      sender.signalSend.emit()
      proxy.flush()
      qapp.processEvents(
          QtCore.QEventLoop.ProcessEventsFlag.AllEvents, 10
      )
  
      assert receiver.counter > 0
  
file_path: pyqtgraph/tests/test_signalproxy.py
imports: import pytest
  from pyqtgraph import SignalProxy
  from pyqtgraph.Qt import QtCore, mkQApp
label_desc: Use image node_id 5 for calling a global function with example usage: test_signal_proxy_slot_block(qapp) without return types