code: def test_broadcast(monkeypatch):
      session = mock.MagicMock()
      resp = requests.Response()
      resp.status_code = 200
  
      def fn(*args, **kwargs):
          nonlocal session
          return {
              "value": session.post._mock_call_args_list[0].kwargs[
                  "json"
              ]["value"]
          }
  
      resp.json = fn
      session.post.return_value = resp
      monkeypatch.setattr(
          requests, "Session", mock.MagicMock(return_value=session)
      )
      assert broadcast_object("key", "value") == "value"
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_broadcast(monkeypatch) and returns: dict