code: def test_primes():
      primes = sequences.primes_from_2_to(50)
      out = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]
      npt.assert_allclose(primes, out)
  
imports: import numpy
  import numpy.testing
  from statsmodels.tools import sequences
label_desc: Use image node_id 3 for calling a global function with example usage: test_primes() without return types