code: def test_series_constructor_with_dtype():
      arr = DecimalArray([decimal.Decimal("10.0")])
      result = pd.Series(arr, dtype=DecimalDtype())
      expected = pd.Series(arr)
      tm.assert_series_equal(result, expected)
  
      result = pd.Series(arr, dtype="int64")
      expected = pd.Series([10])
      tm.assert_series_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 11 for calling a global function with example usage: test_series_constructor_with_dtype() without return types