code: def test_percentiles_with_scaler_percentile(internal_method, q):
      # Regression test to ensure da.percentile works with scalar percentiles
      # See #3020
      d = da.ones((16,), chunks=(4,))
      assert_eq(
          da.percentile(d, q, internal_method=internal_method),
          np.array([1], dtype=d.dtype),
      )
  
file_path: dask/dask/array/tests/test_percentiles.py
imports: from __future__ import annotations
  import pytest
  import numpy
  import dask.array
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 5 for calling a global function with example usage: test_percentiles_with_scaler_percentile(internal_method, q) without return types