code: def test_empty_dtypes(check_dtype):
      columns = ["col1", "col2"]
      df1 = DataFrame(columns=columns)
      df2 = DataFrame(columns=columns)
  
      kwargs = {"check_dtype": check_dtype}
      df1["col1"] = df1["col1"].astype("int64")
  
      if check_dtype:
          msg = r"Attributes of DataFrame\..* are different"
          with pytest.raises(AssertionError, match=msg):
              tm.assert_frame_equal(df1, df2, **kwargs)
      else:
          tm.assert_frame_equal(df1, df2, **kwargs)
  
imports: import pytest
  import pandas
  from pandas import DataFrame
  import pandas._testing
label_desc: Use image node_id 6 for calling a global function with example usage: test_empty_dtypes(check_dtype) without return types