code: def test_percentiles_with_empty_q():
      x = da.from_array(cupy.ones(10), chunks=((5, 0, 5),))
      result = da.percentile(x, [], method="midpoint")
      assert type(result._meta) == cupy.ndarray
      assert_eq(
          result, result
      )  # Check that _meta and computed arrays match types
      assert_eq(result, np.array([], dtype=x.dtype), check_type=False)
  
file_path: dask/dask/array/tests/test_cupy_percentile.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 4 for calling a global function with example usage: test_percentiles_with_empty_q() without return types