code: def test_run(self):
      with mock.patch("moolib.Broker") as MockBroker:
          instance = MockBroker.return_value
          instance.update.side_effect = [
              None,
              None,
              None,
              KeyboardInterrupt("Enough"),
          ]
  
          moolib.broker.main()
  
          MockBroker.assert_called_once()
          assert instance.update.call_count == 4
  
imports: from unittest import mock
  import moolib.broker
label_desc: Use image node_id 2 for calling the TestBrokerScript obj's underlying member method code with example usage: obj.test_run() without return types