code: def test_footprint_dtype(
      function, args, supports_sequence_decomposition, dtype
  ):
      # make sure footprint dtype matches what was requested
      footprint = function(*args, dtype=dtype)
      assert footprint.dtype == dtype
  
      if supports_sequence_decomposition:
          sequence = function(
              *args, dtype=dtype, decomposition="sequence"
          )
          assert all(
              [fp_tuple[0].dtype == dtype for fp_tuple in sequence]
          )
  
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 1 for calling a global function with example usage: test_footprint_dtype(function, args, supports_sequence_decomposition, dtype) without return types