code: def test_iter_2d(self, data):
      arr2d = data.reshape(1, -1)
  
      objs = list(iter(arr2d))
      assert len(objs) == arr2d.shape[0]
  
      for obj in objs:
          assert isinstance(obj, type(data))
          assert obj.dtype == data.dtype
          assert obj.ndim == 1
          assert len(obj) == arr2d.shape[1]
  
imports: import numpy
  import pytest
  from pandas._libs.missing import is_matching_na
  from pandas.core.dtypes.common import is_bool_dtype, is_integer_dtype
  import pandas
  import pandas._testing
  from pandas.core.arrays.integer import NUMPY_INT_TO_DTYPE
label_desc: Use image node_id 10 for calling the Dim2CompatTests obj's underlying member method code with example usage: obj.test_iter_2d(data) without return types