code: def test_linspace_broadcast(self, xp, scp, dtype, function):
      import scipy.special  # NOQA
  
      func = getattr(scp.special, function)
      # chdtr* comparisons fail at < 1 degree of freedom
      minval = 1 if function.startswith("chdtr") else -1
      v = xp.arange(minval, 10, dtype=dtype)[:, xp.newaxis]
      if function in ["chdtri", "pdtri"]:
          # concentrate values around probability range ([0, 1])
          x = xp.linspace(-0.1, 1.3, 20, dtype=dtype)
      else:
          # concentrate mostly on valid, positive values
          x = xp.linspace(-1, 10, 20, dtype=dtype)
      return func(v, x[xp.newaxis, :])
  
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  import cupyx.scipy.special
label_desc: Use image node_id 1 for calling the TestTwoArgumentDistribution obj's underlying member method code with example usage: obj.test_linspace_broadcast(xp, scp, dtype, function) and returns: func