code: def test_pad_constant_values(np_a, pad_value):
      pad_width = (1, 1)
      da_a = da.from_array(np_a, chunks=(2,))
  
      np_r = np.pad(
          np_a, pad_width, mode="constant", constant_values=pad_value
      )
      da_r = da.pad(
          da_a, pad_width, mode="constant", constant_values=pad_value
      )
  
      assert_eq(np_r, da_r)
  
imports: from __future__ import annotations
  import pytest
  import numpy
  import pytest
  from tlz import concat
  import dask
  import dask.array
  from dask.array.core import normalize_chunks
  from dask.array.numpy_compat import AxisError
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 30 for calling a global function with example usage: test_pad_constant_values(np_a, pad_value) without return types