code: def test_zoom_ratio_2():
      f = np.zeros((128, 128))
      f[32:64, 32:64] = 128
      z0, z1 = 0.7, 0.5
      output = interpolate.zoom(f, [z0, z1])
      ratio = output.sum() / f.sum()
      assert np.abs(ratio - z0 * z1) < 0.1
  
file_path: mahotas/mahotas/tests/test_interpolate.py
imports: from mahotas import interpolate
  import numpy
  import pytest
  from pytest import raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_zoom_ratio_2() without return types