code: def assertMapping(vb, r1, r2):
      assert vb.mapFromView(r1.topLeft()) == r2.topLeft()
      assert vb.mapFromView(r1.bottomLeft()) == r2.bottomLeft()
      assert vb.mapFromView(r1.topRight()) == r2.topRight()
      assert vb.mapFromView(r1.bottomRight()) == r2.bottomRight()
  
imports: import pytest
  import pyqtgraph
label_desc: Use image node_id 1 for calling a global function with example usage: assertMapping(vb, r1, r2) without return types