code: def float8e5m2_to_float32(
      data: Union[np.int16, np.int32, np.ndarray],
      dims: Optional[Union[int, Sequence[int]]] = None,
      fn: bool = False,
      uz: bool = False,
  ) -> np.ndarray:
      """Converts ndarray of float8, e5m2 (as uint32) to f32 (as uint32).
  
      See :ref:`onnx-detail-float8` for technical details.
  
      Args:
          data: A numpy array, empty dimensions are allowed if dims is None.
          dims: If specified, the function reshapes the results.
          fn: No infinite values.
          uz: No negative zero.
  
      Returns:
          A numpy array of float32 with the same dimension if dims is None,
          or reshaped to dims if specified
      """
      res = _float8e5m2_to_float32(data, fn=fn, uz=uz)
      if dims is None:
          return res  # type: ignore[no-any-return]
      return res.reshape(dims)
  
imports: import sys
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  import numpy
  from onnx import MapProto, OptionalProto, SequenceProto, TensorProto, helper, subbyte
  from onnx.external_data_helper import load_external_data_for_tensor, uses_external_data
label_desc: Use image node_id 6 for calling a global function with example usage: float8e5m2_to_float32(data, dims, fn, uz) and returns: res, res