code: def test_float8_e5m2_out_of_range(self):
      x = np.float32(1000000)
      to = helper.float32_to_float8e5m2(x)
      back = numpy_helper.float8e5m2_to_float32(to)
      self.assertEqual(back, 57344)
  
      x = np.float32(1000000)
      to = helper.float32_to_float8e5m2(x, saturate=False)
      back = numpy_helper.float8e5m2_to_float32(to)
      self.assertTrue(np.isinf(back))
  
      x = np.float32(-1000000)
      to = helper.float32_to_float8e5m2(x)
      back = numpy_helper.float8e5m2_to_float32(to)
      self.assertEqual(back, -57344)
  
      x = np.float32(-1000000)
      to = helper.float32_to_float8e5m2(x, saturate=False)
      back = numpy_helper.float8e5m2_to_float32(to)
      self.assertTrue(np.isinf(back))
  
imports: import unittest
  from typing import Any
  import numpy
  import parameterized
  import onnx
  from onnx import helper, numpy_helper
label_desc: Use image node_id 25 for calling the TestNumpyHelper obj's underlying member method code with example usage: obj.test_float8_e5m2_out_of_range() without return types