code: def test_to_numpy_keyword():
      # test the extra keyword
      values = [decimal.Decimal("1.1111"), decimal.Decimal("2.2222")]
      expected = np.array(
          [decimal.Decimal("1.11"), decimal.Decimal("2.22")],
          dtype="object",
      )
      a = pd.array(values, dtype="decimal")
      result = a.to_numpy(decimals=2)
      tm.assert_numpy_array_equal(result, expected)
  
      result = pd.Series(a).to_numpy(decimals=2)
      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 25 for calling a global function with example usage: test_to_numpy_keyword() without return types