code: def test_interface():
      img = VolumeField()
      img.world_space = "world"
      for method in ("get_transform", "as_volume_img"):
          method = getattr(img, method)
          assert pytest.raises(NotImplementedError, method)
  
      assert pytest.raises(
          CompositionError,
          img.composed_with_transform,
          Transform("world2", "world", mapping=map),
      )
  
      assert pytest.raises(
          NotImplementedError,
          img.composed_with_transform,
          Transform("world", "world2", mapping=map),
      )
  
      assert pytest.raises(
          NotImplementedError, img.resampled_to_img, None
      )
  
      assert pytest.raises(
          NotImplementedError, img.values_in_world, None, None, None
      )
  
imports: import pytest
  from ...transforms.transform import CompositionError, Transform
  from ..volume_field import VolumeField
label_desc: Use image node_id 1 for calling a global function with example usage: test_interface() without return types