code: def test_floatingpoint_errors_casting(dtype, value):
      dtype = np.dtype(dtype)
      for operation in check_operations(dtype, value):
          dtype = np.dtype(dtype)
  
          match = "invalid" if dtype.kind in "iu" else "overflow"
          with pytest.warns(RuntimeWarning, match=match):
              operation()
  
          with np.errstate(all="raise"):
              with pytest.raises(FloatingPointError, match=match):
                  operation()
  
imports: import pytest
  from pytest import param
  from numpy.testing import IS_WASM
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_floatingpoint_errors_casting(dtype, value) without return types