code: def test_unsharp_masking_with_different_ranges_deprecated(
      shape, offset, channel_axis, preserve
  ):
      radius = 2.0
      amount = 1.0
      dtype = np.int16
      array = (np.random.random(shape) * 5 + offset).astype(dtype)
      negative = np.any(array < 0)
      output = unsharp_mask(
          array,
          radius,
          amount,
          channel_axis=channel_axis,
          preserve_range=preserve,
      )
      if preserve is False:
          assert np.any(output <= 1)
          assert np.any(output >= -1)
          if negative is False:
              assert np.any(output >= 0)
      assert output.dtype in [np.float32, np.float64]
      assert output.shape == shape
  
file_path: scikit-image/skimage/filters/tests/test_unsharp_mask.py
imports: import numpy
  import pytest
  from skimage._shared.utils import _supported_float_type
  from skimage.filters import unsharp_mask
label_desc: Use image node_id 4 for calling a global function with example usage: test_unsharp_masking_with_different_ranges_deprecated(shape, offset, channel_axis, preserve) without return types