code: def test_percentile_neg_axis(self, xp, dtype, method):
      a = testing.shaped_random((4, 3, 10, 2, 8), xp, dtype)
      q = testing.shaped_random((5,), xp, dtype=dtype, scale=100)
      return xp.percentile(a, q, axis=-1, 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 4 for calling the TestQuantileMethods obj's underlying member method code with example usage: obj.test_percentile_neg_axis(xp, dtype, method) and returns: xp