code: def test_output_float32(self, padtype, xp, scp):
      # Test that float32 inputs yield a float32 output
      x = xp.arange(10, dtype=xp.float32)
      h = xp.array([1, 1, 1], dtype=xp.float32)
      y = scp.signal.resample_poly(x, 1, 2, window=h, padtype=padtype)
      return y
  
imports: import cupy
  from cupy import testing
  import cupyx.scipy.signal
  import cupyx.scipy.signal.windows
  import numpy
  import pytest
  from math import gcd
label_desc: Use image node_id 6 for calling the TestResample obj's underlying member method code with example usage: obj.test_output_float32(padtype, xp, scp) and returns: y