code: def test_view_constructor():
      EXPECTED = {
          "@@type": "MapView",
          "controller": False,
          "repeat": True,
      }
      assert (
          json.loads(
              View(
                  type="MapView", controller=False, repeat=True
              ).to_json()
          )
          == EXPECTED
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_view_constructor() without return types