code: def test_volume_bounds():
      vol = np.zeros((20, 30, 40), "float32")
      vol[8:16, 8:16, :] = 1.0
  
      # Create
      V = scene.visuals.Volume(vol)
      assert V._compute_bounds(0, V) == (0, 40)  # x
      assert V._compute_bounds(1, V) == (0, 30)  # y
      assert V._compute_bounds(2, V) == (0, 20)
  
imports: import pytest
  import numpy
  from vispy import scene
  from vispy.testing import TestingCanvas, requires_application, run_tests_if_main, requires_pyopengl, raises
  from vispy.testing.image_tester import assert_image_approved, downsample
  from vispy.testing.rendered_array_tester import compare_render, max_for_dtype
label_desc: Use image node_id 2 for calling a global function with example usage: test_volume_bounds() without return types