code: def test_logspace(self, xp, scp, dtype, function):
      import scipy.special  # NOQA
  
      func = getattr(scp.special, function)
      lmax = _get_logspace_max(xp.dtype(dtype))
      x = xp.logspace(-lmax, lmax, 32, dtype=dtype)
      return func(x[:, xp.newaxis], x[xp.newaxis, :])
  
file_path: cupy/tests/cupyx_tests/scipy_tests/special_tests/test_beta.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 TestBeta obj's underlying member method code with example usage: obj.test_logspace(xp, scp, dtype, function) and returns: func