code: def test_plotter_add_volume_clim(uniform: pv.ImageData):
      """Verify clim is set correctly for volume."""
      arr = uniform.x.astype(np.uint8)
      pl = pv.Plotter()
      vol = pl.add_volume(uniform, scalars=arr)
      assert vol.mapper.scalar_range == (0, 255)
  
      clim = [-10, 20]
      pl = pv.Plotter()
      vol = pl.add_volume(uniform, clim=clim)
      assert vol.mapper.scalar_range == tuple(clim)
  
      clim_val = 2.0
      pl = pv.Plotter()
      vol = pl.add_volume(uniform, clim=clim_val)
      assert vol.mapper.scalar_range == (-clim_val, clim_val)
  
imports: import os
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista.core.errors import MissingDataError, PyVistaDeprecationWarning
  from pyvista.plotting import _plotting
  from pyvista.plotting.errors import RenderWindowUnavailable
  from pyvista.plotting.utilities.gl_checks import uses_egl
label_desc: Use image node_id 32 for calling a global function with example usage: test_plotter_add_volume_clim(uniform) without return types