code: def test_close_holes_3d():
      "Close holes should raise exception with 3D inputs"
      f = np.random.rand(100, 100, 3) > 0.9
      with pytest.raises(ValueError):
          mh.close_holes(f)
  
imports: import mahotas
  import numpy
  from mahotas.morph import get_structuring_elem, subm, tophat_open, tophat_close
  import pytest
label_desc: Use image node_id 17 for calling a global function with example usage: test_close_holes_3d() without return types