code: def test_percentile_monotonic(self, dtype, xp):
      a = testing.shaped_random((5,), xp, dtype)
  
      a[0] = self.magic_value
      a[1] = self.magic_value
      q = xp.linspace(0, 100, 21)
      percentiles = xp.percentile(a, q, method="linear")
  
      # Assert that percentile output increases monotonically
      assert xp.all(xp.diff(percentiles) >= 0)
  
      return percentiles
  
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 1 for calling the TestPercentileMonotonic obj's underlying member method code with example usage: obj.test_percentile_monotonic(dtype, xp) and returns: percentiles