code: def test_clip_item_override_init_bounds():
      """clipItem overrides bounds provided in the constructor"""
      init_vals = (-10, 10)
      init_bounds = (-5, 5)
      img_shape = (5, 5)
  
      p = pg.PlotWidget()
      img = pg.ImageItem(image=np.eye(*img_shape))
      p.addItem(img)
  
      lr = pg.LinearRegionItem(
          init_vals, clipItem=img, bounds=init_bounds
      )
      p.addItem(lr)
  
      app.processEvents()
      check_region(lr, (0, img_shape[1]), exact=True)
  
file_path: pyqtgraph/tests/graphicsItems/test_LinearRegionItem.py
imports: import math
  import numpy
  import pytest
  import pyqtgraph
label_desc: Use image node_id 5 for calling a global function with example usage: test_clip_item_override_init_bounds() without return types