code: def check_unary_random(self, name, xp, scp, dtype, scale, offset):
      import scipy.special  # NOQA
  
      a = testing.shaped_random((2, 3), xp, dtype, scale=scale) + offset
  
      @cupy.fuse()
      def f(x):
          return getattr(scp.special, name)(x)
  
      return f(a)
  
imports: import unittest
  import numpy
  import cupy
  from cupy import testing
  import cupyx.scipy.special
label_desc: Use image node_id 2 for calling the TestFusionSpecial obj's underlying member method code with example usage: obj.check_unary_random(name, xp, scp, dtype, scale, offset) and returns: f, getattr