code: def test_frame_from_2d_array(self, data):
      arr2d = data.repeat(2).reshape(-1, 2)
  
      df = pd.DataFrame(arr2d)
      expected = pd.DataFrame({0: arr2d[:, 0], 1: arr2d[:, 1]})
      tm.assert_frame_equal(df, expected)
  
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 3 for calling the Dim2CompatTests obj's underlying member method code with example usage: obj.test_frame_from_2d_array(data) without return types