code: def test_using_map_blocks():
      """Test the `using_map_blocks` decorator."""
  
      def func(np_array, block_info=None):
          value = block_info[0]["chunk-location"][-1]
          return np.ones(np_array.shape) * value
  
      map_blocked_func = using_map_blocks(func)
      arr = xr.DataArray(
          da.zeros((3, 10, 10), dtype=int, chunks=5),
          dims=["bands", "y", "x"],
      )
      res = map_blocked_func(arr)
      assert res.shape == arr.shape
      assert res[0, 0, 0].compute() != res[0, 9, 9].compute()
  
imports: import contextlib
  import os
  from tempfile import NamedTemporaryFile
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.enhancements import create_colormap, on_dask_array, on_separate_bands, using_map_blocks
label_desc: Use image node_id 7 for calling a global function with example usage: test_using_map_blocks() and returns: unknown