code: def test_quantile_out_of_range_q(self, dtype, method):
      for xp in (numpy, cupy):
          a = testing.shaped_random((4, 2, 3, 2), xp, dtype)
          for q in [[-0.1], [1.1]]:
              with pytest.raises(ValueError):
                  xp.quantile(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 22 for calling the TestQuantileMethods obj's underlying member method code with example usage: obj.test_quantile_out_of_range_q(dtype, method) without return types