code: def test_decimal_scale_precision_roundtrip(monkeypatch: Any) -> None:
      monkeypatch.setenv("POLARS_ACTIVATE_DECIMAL", "1")
      assert pl.from_arrow(
          pl.Series("dec", [D("10.0")]).to_arrow()
      ).item() == D("10.0")
  
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 9 for calling a global function with example usage: test_decimal_scale_precision_roundtrip(monkeypatch) without return types