code: def test_disk_crosses_approximation(radius, strict_radius):
      fp_func = footprints.disk
      expected = fp_func(
          radius, strict_radius=strict_radius, decomposition=None
      )
      footprint_sequence = fp_func(
          radius, strict_radius=strict_radius, decomposition="crosses"
      )
      approximate = footprints.footprint_from_sequence(
          footprint_sequence
      )
      assert approximate.shape == expected.shape
  
      # verify that maximum error does not exceed some fraction of the size
      error = np.sum(
          np.abs(expected.astype(int) - approximate.astype(int))
      )
      max_error = 0.05
      assert error / expected.size <= max_error
  
imports: import numpy
  import pytest
  from numpy.testing import assert_equal
  from skimage._shared.testing import fetch
  from skimage.morphology import footprints
label_desc: Use image node_id 3 for calling a global function with example usage: test_disk_crosses_approximation(radius, strict_radius) without return types