code: def test_dataframe_constructor_with_dtype():
      arr = DecimalArray([decimal.Decimal("10.0")])
  
      result = pd.DataFrame({"A": arr}, dtype=DecimalDtype())
      expected = pd.DataFrame({"A": arr})
      tm.assert_frame_equal(result, expected)
  
      arr = DecimalArray([decimal.Decimal("10.0")])
      result = pd.DataFrame({"A": arr}, dtype="int64")
      expected = pd.DataFrame({"A": [10]})
      tm.assert_frame_equal(result, expected)
  
imports: from __future__ import annotations
  import decimal
  import operator
  import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.tests.extension import base
  from pandas.tests.extension.decimal.array import DecimalArray, DecimalDtype, make_data, to_decimal
label_desc: Use image node_id 12 for calling a global function with example usage: test_dataframe_constructor_with_dtype() without return types