code: def test_pad_default(self, xp, dtype):
      array = xp.array(self.array, dtype=dtype)
  
      if (
          xp.dtype(dtype).kind in ["i", "u"]
          and self.mode == "linear_ramp"
      ):
          # TODO: can remove this skip once cupy/cupy/#2330 is merged
          return array
  
      # Older version of NumPy(<1.12) can emit ComplexWarning
      def f():
          return xp.pad(array, self.pad_width, mode=self.mode)
  
      if xp is numpy:
          with warnings.catch_warnings():
              warnings.simplefilter("ignore", numpy.ComplexWarning)
              return f()
      else:
          return f()
  
imports: import unittest
  import warnings
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling the TestPadDefault obj's underlying member method code with example usage: obj.test_pad_default(xp, dtype) and returns: array, xp, f, f