code: def test_scipy(self):
      try:
          import numpy as np
      except ImportError:
          pytest.skip("numpy not available")
  
      try:
          from scipy import ndimage
      except ImportError:
          pytest.skip("scipy not available")
  
      black = pyvips.Image.black(16, 16)
      a = black.draw_rect(1, 0, 0, 1, 1)
  
      d = ndimage.distance_transform_edt(a == 0)
      assert np.allclose(d[-1, -1], (2 * 15**2) ** 0.5)
  
file_path: pyvips/tests/test_image.py
imports: import pyvips
  import pytest
  from helpers import JPEG_FILE
label_desc: Use image node_id 7 for calling the TestImage obj's underlying member method code with example usage: obj.test_scipy() without return types