code: def test_legacy_case1(self, b):
      # Test results of hyp1f1(0, n, x) for n <= 0.
      # This is a legacy edge case.
      # Boost (versions greater than 1.80), Mathematica (via Wolfram Alpha
      # online) and mpmath all return 1 in this case, but SciPy's hyp1f1
      # returns inf.
      assert_equal(
          sc.hyp1f1(0, b, [-1.5, 0, 1.5]), [np.inf, np.inf, np.inf]
      )
  
file_path: scipy/scipy/special/tests/test_hypergeometric.py
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose, assert_equal
  import scipy.special
label_desc: Use image node_id 10 for calling the TestHyp1f1 obj's underlying member method code with example usage: obj.test_legacy_case1(b) without return types