code: def test_multi_block_data_range():
      volume = pv.Wavelet()
      a = volume.slice_along_axis(5, "x")
      with pytest.raises(KeyError):
          a.get_data_range("foo")
      mi, ma = a.get_data_range(volume.active_scalars_name)
      assert mi is not None
      assert ma is not None
      # Test on a nested MultiBlock
      b = volume.slice_along_axis(5, "y")
      slices = pv.MultiBlock([a, b])
      with pytest.raises(KeyError):
          slices.get_data_range("foo")
      mi, ma = slices.get_data_range(volume.active_scalars_name)
      assert mi is not None
      assert ma is not None
  
imports: import pathlib
  import platform
  import weakref
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista import ImageData, MultiBlock, PolyData, RectilinearGrid, StructuredGrid, examples
label_desc: Use image node_id 32 for calling a global function with example usage: test_multi_block_data_range() without return types