code: def test_coerce_pyarrow_backend():
      # GH 52588
      pa = pytest.importorskip("pyarrow")
      ser = Series(list("12x"), dtype=ArrowDtype(pa.string()))
      result = to_numeric(ser, errors="coerce", dtype_backend="pyarrow")
      expected = Series([1, 2, None], dtype=ArrowDtype(pa.int64()))
      tm.assert_series_equal(result, expected)
  
imports: import decimal
  import numpy
  from numpy import iinfo
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import ArrowDtype, DataFrame, Index, Series, option_context, to_numeric
  import pandas._testing
label_desc: Use image node_id 61 for calling a global function with example usage: test_coerce_pyarrow_backend() without return types