code: def test_percentile_keepdims(self, xp, dtype, method):
      a = testing.shaped_random((7, 2, 9, 2), xp, dtype)
      q = testing.shaped_random((5,), xp, dtype=dtype, scale=100)
      return xp.percentile(
          a, q, axis=None, keepdims=True, method=method
      )
  
imports: import warnings
  import numpy
  import pytest
  import cupy
  import cupy._core._accelerator
  from cupy import cuda
  from cupy import testing
label_desc: Use image node_id 7 for calling the TestQuantileMethods obj's underlying member method code with example usage: obj.test_percentile_keepdims(xp, dtype, method) and returns: xp