code: def test_scalar(self, xp, scp, dtype, function):
      import scipy.special  # NOQA
  
      if xp.dtype(dtype).kind == "c":
          val = dtype(1.5 + 1.0j)
      else:
          val = dtype(1.5)
      func = getattr(scp.special, function)
      return func(val)
  
file_path: cupy/tests/cupyx_tests/scipy_tests/special_tests/test_gamma.py
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  import cupyx.scipy.special
label_desc: Use image node_id 3 for calling the TestGamma obj's underlying member method code with example usage: obj.test_scalar(xp, scp, dtype, function) and returns: func