code: def _find_reduced_shape(self):
      x_shape = self.x.shape
      axis = self.axis.val
  
      reduced_shape = list(x_shape)
      axis = axis if axis >= 0 else axis + len(reduced_shape)
      if self.keep_dims.val:
          reduced_shape[axis] = 1
      else:
          reduced_shape.pop(axis)
      return reduced_shape
  
imports: import numpy
  from coremltools.converters.mil.mil import Operation, precondition, types
  from coremltools.converters.mil.mil.input_type import DefaultInputs, InputSpec, TensorInputType
  from coremltools.converters.mil.mil.operation import VALUE
  from coremltools.converters.mil.mil.ops.defs._op_reqs import register_op
  from coremltools.converters.mil.mil.types import nptype_from_builtin
label_desc: Use image node_id 2 for calling the ReductionAxis obj's underlying member method code with example usage: obj._find_reduced_shape() and returns: reduced_shape