code: def test_atleast_2d(self):
      # Ticket #1559
      a = np.ma.masked_array([0.0, 1.2, 3.5], mask=[False, True, False])
      b = np.atleast_2d(a)
      assert_(a.mask.ndim == 1)
      assert_(b.mask.ndim == 2)
  
file_path: numpy/numpy/ma/tests/test_regression.py
imports: import numpy
  from numpy.testing import assert_, assert_array_equal, assert_allclose, suppress_warnings
label_desc: Use image node_id 7 for calling the TestRegression obj's underlying member method code with example usage: obj.test_atleast_2d() without return types