code: def test_int_cast_possible():
      testing.assert_equal(safe_as_int(7.1, atol=0.11), 7)
      testing.assert_equal(safe_as_int(-7.1, atol=0.11), -7)
      testing.assert_equal(safe_as_int(41.9, atol=0.11), 42)
      testing.assert_array_equal(
          safe_as_int([2, 42, 5789234.0, 87, 4]),
          np.r_[2, 42, 5789234, 87, 4],
      )
      testing.assert_array_equal(
          safe_as_int(
              np.r_[
                  [
                      [3, 4, 1.000000001],
                      [7, 2, -8.999999999],
                      [6, 9, -4234918347.0],
                  ]
              ]
          ),
          np.r_[[[3, 4, 1], [7, 2, -9], [6, 9, -4234918347]]],
      )
  
imports: import numpy
  from skimage._shared.utils import safe_as_int
  from skimage._shared import testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_int_cast_possible() without return types