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