code: def test_non_ivy_errors_mapping(e, to_be_raised):
      with pytest.raises(
          to_be_raised,
      ) as raised:
          func(e)
      assert issubclass(raised.type, to_be_raised)
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_handle_exceptions.py
imports: import pytest
  from hypothesis import given
  import hypothesis.strategies
  from ivy import handle_exceptions
  from ivy.utils.exceptions import IvyError, IvyNotImplementedException, IvyBroadcastShapeError, IvyValueError, InplaceUpdateException, IvyException, IvyIndexError, IvyAttributeError, IvyBackendException, IvyDeviceError, IvyInvalidBackendException, IvyDtypePromotionError, _non_ivy_exceptions_mapping
label_desc: Use image node_id 4 for calling a global function with example usage: test_non_ivy_errors_mapping(e, to_be_raised) without return types