code: def test_zoom_ratio_with_limits_out_of_range():
      vb = pg.ViewBox(lockAspect=1)
  
      # twice as wide as tall
      vb.setFixedHeight(10)
      vb.setFixedWidth(20)
  
      # set some limits
      vb.setLimits(xMin=-5, xMax=5, yMin=-5, yMax=5)
  
      # Request something completely out-of-range and out-of-aspect
      testRange = pg.QtCore.QRect(10, 10, 25, 100)
      vb.setRange(testRange, padding=0)
  
      viewRange = vb.getState()["viewRange"]
      viewWidth = viewRange[0][1] - viewRange[0][0]
      viewHeight = viewRange[1][1] - viewRange[1][0]
  
      # Make sure our view is within limits and the proper aspect ratio
      assert viewRange[0][0] >= -5
      assert viewRange[0][1] <= 5
      assert viewRange[1][0] >= -5
      assert viewRange[1][1] <= 5
      assert viewWidth == 2 * viewHeight
  
file_path: pyqtgraph/tests/graphicsItems/ViewBox/test_ViewBoxZoom.py
imports: import pyqtgraph
label_desc: Use image node_id 8 for calling a global function with example usage: test_zoom_ratio_with_limits_out_of_range() without return types