code: def test_multigammaln_array_arg():
      # Check that the array returned by multigammaln has the correct
      # shape and contains the correct values.  The cases have arrays
      # with several different shapes.
      # The cases include a regression test for ticket #1849
      # (a = np.array([2.0]), an array with a single element).
      np.random.seed(1234)
  
      cases = [
          # a, d
          (np.abs(np.random.randn(3, 2)) + 5, 5),
          (np.abs(np.random.randn(1, 2)) + 5, 5),
          (np.arange(10.0, 18.0).reshape(2, 2, 2), 3),
          (np.array([2.0]), 3),
          (np.float64(2.0), 3),
      ]
  
      for a, d in cases:
          _check_multigammaln_array_result(a, d)
  
file_path: scipy/scipy/special/tests/test_spfun_stats.py
imports: import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal_nulp, assert_almost_equal
  from pytest import raises
  from scipy.special import gammaln, multigammaln
label_desc: Use image node_id 2 for calling a global function with example usage: test_multigammaln_array_arg() without return types