code: def test_map_overlap_deprecated_signature():
      def func(x):
          return np.array(x.sum())
  
      x = da.ones(3)
  
      # Old positional signature: func, depth, boundary, trim
      with pytest.warns(FutureWarning):
          y = da.map_overlap(x, func, 0, "reflect", True)
          assert y.compute() == 3
          assert y.shape == (3,)
  
      with pytest.warns(FutureWarning):
          y = da.map_overlap(x, func, 1, "reflect", True)
          assert y.compute() == 5
          assert y.shape == (3,)
  
      with pytest.warns(FutureWarning):
          y = da.map_overlap(x, func, 1, "reflect", False)
          assert y.compute() == 5
          assert y.shape == (3,)
  
imports: from __future__ import annotations
  import pytest
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import dask.array
  from dask.array.lib.stride_tricks import sliding_window_view
  from dask.array.overlap import boundaries, constant, ensure_minimum_chunksize, nearest, overlap, overlap_internal, periodic, reflect, trim_internal
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 24 for calling a global function with example usage: test_map_overlap_deprecated_signature() and returns: np