code: def test_string_to_decimal() -> None:
      s = pl.Series(
          [
              "40.12",
              "3420.13",
              "120134.19",
              "3212.98",
              "12.90",
              "143.09",
              "143.9",
              "-62.44",
          ]
      ).str.to_decimal()
      assert s.dtype == pl.Decimal(scale=2)
  
      assert s.to_list() == [
          D("40.12"),
          D("3420.13"),
          D("120134.19"),
          D("3212.98"),
          D("12.90"),
          D("143.09"),
          D("143.90"),
          D("-62.44"),
      ]
  
imports: from __future__ import annotations
  import io
  import itertools
  from dataclasses import dataclass
  from decimal import Decimal
  from typing import Any, NamedTuple
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_string_to_decimal() without return types