code: def test_scalar_ops_from_sequence_raises(class_):
      # op(EA, EA) should return an EA, or an ndarray if it's not possible
      # to return an EA with the return values.
      arr = class_([decimal.Decimal("1.0"), decimal.Decimal("2.0")])
      result = arr + arr
      expected = np.array(
          [decimal.Decimal("2.0"), decimal.Decimal("4.0")],
          dtype="object",
      )
      tm.assert_numpy_array_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 15 for calling a global function with example usage: test_scalar_ops_from_sequence_raises(class_) without return types