code: def test_invalid_deployment_target_cumsum(self, target):
      x_shape = (3, 4, 5)
  
      @make_tf_graph([x_shape])
      def build_model(x):
          return tf.math.cumsum(
              x, axis=-1, reverse=False, exclusive=False
          )
  
      model, inputs, outputs = build_model
  
      with pytest.raises(ValueError) as e:
          converter.convert(model, minimum_deployment_target=target)
      e.match(
          r"Provided minimum deployment target .* version 4 but converted model "
          r"uses .* available from version 5 onwards.\n    1. Cumsum operation\n"
      )
  
imports: import numpy
  import os
  import six
  import pytest
  import shutil
  import tempfile
  import coremltools
  import coremltools.converters
  from coremltools._deps import _IS_MACOS
  import coremltools.proto.FeatureTypes_pb2
  from coremltools import TensorType, ImageType, RangeDim, EnumeratedShapes
  from coremltools.converters.mil.testing_utils import random_gen
  from coremltools.converters.mil.frontend.tensorflow.converter import TFConverter
  from coremltools.converters.mil.frontend.tensorflow.test.testing_utils import frontend, make_tf_graph, run_compare_tf, get_tf_keras_io_names
label_desc: Use image node_id 9 for calling the TestTf1ModelInputsOutputs obj's underlying member method code with example usage: obj.test_invalid_deployment_target_cumsum(target) and returns: tf