code: def test_1d(self, use_pandas):
      data = gen_data(1, use_pandas)
      a = array_like(data, "a")
      assert a.ndim == 1
      assert a.shape == (10,)
      assert type(a) is np.ndarray
  
      a = array_like(data, "a", ndim=1)
      assert a.ndim == 1
      a = array_like(data, "a", shape=(10,))
      assert a.shape == (10,)
      a = array_like(data, "a", ndim=1, shape=(None,))
      assert a.ndim == 1
      a = array_like(data, "a", ndim=2, shape=(10, 1))
      assert a.ndim == 2
      assert a.shape == (10, 1)
  
      with pytest.raises(
          ValueError, match="a is required to have shape"
      ):
          array_like(data, "a", shape=(5,))
  
imports: from collections import OrderedDict
  import numpy
  import pandas
  import pytest
  from statsmodels.tools.validation import array_like, PandasWrapper, bool_like, dict_like, float_like, int_like, string_like
  from statsmodels.tools.validation.validation import _right_squeeze
label_desc: Use image node_id 1 for calling the TestArrayLike obj's underlying member method code with example usage: obj.test_1d(use_pandas) without return types