code: def test_reduce_arg_ios17_output_dtype_invalid(
      self, backend, op_name
  ):
      x = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], dtype=np.float32)
  
      def prog():
          return getattr(mb, op_name)(
              x=x, axis=1, keep_dims=False, output_dtype="dummy"
          )
  
      with pytest.raises(
          ValueError, match='Invalid "output_dtype" dummy'
      ):
          mb.program(
              input_specs=[], opset_version=backend.opset_version
          )(prog)
  
file_path: coremltools/coremltools/converters/mil/mil/ops/tests/iOS17/test_reduction.py
imports: import itertools
  import numpy
  import pytest
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.ops.tests.iOS17 import backends
  from coremltools.converters.mil.mil.ops.tests.testing_utils import run_compare_builder
  from coremltools.converters.mil.testing_reqs import compute_units
label_desc: Use image node_id 2 for calling the TestReduction obj's underlying member method code with example usage: obj.test_reduce_arg_ios17_output_dtype_invalid(backend, op_name) and returns: getattr