code: def test_decimal_numpy_export(use_pyarrow: bool) -> None:
      decimal_data = [D("1.234"), D("2.345"), D("-3.456")]
  
      s = pl.Series("n", decimal_data)
      df = s.to_frame()
  
      assert_array_equal(
          np.array(decimal_data),
          s.to_numpy(use_pyarrow=use_pyarrow),
      )
      assert_array_equal(
          np.array(decimal_data).reshape((-1, 1)),
          df.to_numpy(use_pyarrow=use_pyarrow),
      )
  
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 16 for calling a global function with example usage: test_decimal_numpy_export(use_pyarrow) without return types