code: def test_scalar(self, xp, scp, dtype):
      import scipy.special  # NOQA
  
      # polygamma in scipy returns numpy.float64 value when inputs scalar.
      # whatever type input is.
      return scp.special.polygamma(dtype(2.0), dtype(1.5)).astype(
          numpy.float32
      )
  
file_path: cupy/tests/cupyx_tests/scipy_tests/special_tests/test_polygamma.py
imports: import unittest
  from cupy import testing
  import cupyx.scipy.special
  import numpy
  import warnings
label_desc: Use image node_id 3 for calling the TestPolygamma obj's underlying member method code with example usage: obj.test_scalar(xp, scp, dtype) and returns: scp