code: def test_sum_of_squares_decimal(dtype):
      np.random.seed(0)
      data = [str(x) for x in gen_rand("int8", 3) / 10]
  
      expected = pd.Series([Decimal(x) for x in data]).pow(2).sum()
      got = (cudf.Series(data).astype(dtype) ** 2).sum()
  
      assert_eq(expected, got)
  
imports: from decimal import Decimal
  from itertools import product
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import Series
  from cudf.core.dtypes import Decimal32Dtype, Decimal64Dtype, Decimal128Dtype
  from cudf.testing import _utils
  from cudf.testing._utils import NUMERIC_TYPES, assert_eq, expect_warning_if, gen_rand
label_desc: Use image node_id 7 for calling a global function with example usage: test_sum_of_squares_decimal(dtype) without return types