code: def test_reduce_log_sum_exp_value_inference(self, input_size):
      rs = np.random.RandomState(1234)
      x = rs.random(input_size)
  
      for axis in range(-x.ndim, x.ndim - 1):
  
          @mb.program(input_specs=[])
          def prog():
              return mb.reduce_log_sum_exp(x=x, axes=(axis,))
  
          op = list(prog.functions.values())[0].operations[3]
          assert op.op_type == "reduce_log_sum_exp"
          np.testing.assert_allclose(
              op.value_inference(),
              scipy.special.logsumexp(x, axis=axis),
              atol=1e-04,
              rtol=1e-05,
          )
  
file_path: coremltools/coremltools/converters/mil/mil/ops/tests/iOS14/test_reduction.py
imports: import itertools
  import numpy
  import pytest
  import scipy
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import get_new_symbol, types
  from coremltools.converters.mil.mil.ops.tests.iOS14 import backends
  from coremltools.converters.mil.mil.ops.tests.testing_utils import run_compare_builder
  from coremltools.converters.mil.testing_reqs import compute_units
  from coremltools.converters.mil.testing_utils import random_gen, ssa_fn
label_desc: Use image node_id 7 for calling the TestReduction obj's underlying member method code with example usage: obj.test_reduce_log_sum_exp_value_inference(input_size) and returns: mb