code: def test_assert_extension_array_equal_less_precise(decimals):
      rtol = 0.5 * 10**-decimals
      arr1 = SparseArray([0.5, 0.123456])
      arr2 = SparseArray([0.5, 0.123457])
  
      if decimals >= 5:
          msg = """\
  ExtensionArray are different
  
  ExtensionArray values are different \\(50\\.0 %\\)
  \\[left\\]:  \\[0\\.5, 0\\.123456\\]
  \\[right\\]: \\[0\\.5, 0\\.123457\\]"""
  
          with pytest.raises(AssertionError, match=msg):
              tm.assert_extension_array_equal(arr1, arr2, rtol=rtol)
      else:
          tm.assert_extension_array_equal(arr1, arr2, rtol=rtol)
  
file_path: pandas/pandas/tests/util/test_assert_extension_array_equal.py
imports: import numpy
  import pytest
  from pandas import Timestamp, array
  import pandas._testing
  from pandas.core.arrays.sparse import SparseArray
label_desc: Use image node_id 2 for calling a global function with example usage: test_assert_extension_array_equal_less_precise(decimals) without return types