code: def test_int_cast_not_possible():
      with testing.raises(ValueError):
          safe_as_int(7.1)
      with testing.raises(ValueError):
          safe_as_int([7.1, 0.9])
      with testing.raises(ValueError):
          safe_as_int(np.r_[7.1, 0.9])
      with testing.raises(ValueError):
          safe_as_int((7.1, 0.9))
      with testing.raises(ValueError):
          safe_as_int(((3, 4, 1), (2, 7.6, 289)))
      with testing.raises(ValueError):
          safe_as_int(7.1, 0.09)
      with testing.raises(ValueError):
          safe_as_int([7.1, 0.9], 0.09)
      with testing.raises(ValueError):
          safe_as_int(np.r_[7.1, 0.9], 0.09)
      with testing.raises(ValueError):
          safe_as_int((7.1, 0.9), 0.09)
      with testing.raises(ValueError):
          safe_as_int(((3, 4, 1), (2, 7.6, 289)), 0.25)
  
imports: import numpy
  from skimage._shared.utils import safe_as_int
  from skimage._shared import testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_int_cast_not_possible() without return types