code: def test_quantile_overwrite(self, xp, dtype, method):
      a = testing.shaped_random((10, 2, 3, 2), xp, dtype)
      ap = a.copy()
      q = testing.shaped_random((5,), xp, dtype=dtype, scale=1)
  
      res = xp.quantile(
          a, q, axis=-1, method=method, overwrite_input=True
      )
  
      assert not xp.all(ap == a)
      return res
  
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 20 for calling the TestQuantileMethods obj's underlying member method code with example usage: obj.test_quantile_overwrite(xp, dtype, method) and returns: res