code: def test_negbinomdist_linspace(
      self, xp, scp, function, dtype, int_dtype
  ):
      import scipy.special  # NOQA
  
      func = getattr(scp.special, function)
      n = xp.linspace(0, 20, 20, dtype=int_dtype)[
          xp.newaxis, :, xp.newaxis
      ]
      k = xp.linspace(0, 20, 20, dtype=int_dtype)[
          :, xp.newaxis, xp.newaxis
      ]
      p = xp.linspace(0, 1, 5, dtype=dtype)[xp.newaxis, xp.newaxis, :]
      return func(k, n, p)
  
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 TestThreeArgumentDistributions obj's underlying member method code with example usage: obj.test_negbinomdist_linspace(xp, scp, function, dtype, int_dtype) and returns: func