code: def _tflite_convert_verify_op(
      tflite_convert_function, *args, **kwargs
  ):
      """Verifies that the result of the conversion contains DynamicUpdateSlice op."""
      result = tflite_convert_function(*args, **kwargs)
      tflite_model_binary = result[0]
      if not result[0]:
          tf.compat.v1.logging.error(
              result[1]
          )  # stderr from running tflite_convert.
          raise RuntimeError("Failed to build model: \n\n" + result[1])
      interpreter = tf.lite.Interpreter(
          model_content=tflite_model_binary
      )
      interpreter.allocate_tensors()
      for (
          op
      ) in (
          interpreter._get_ops_details()
      ):  # pylint: disable=protected-access
          if op["op_name"] == "DYNAMIC_UPDATE_SLICE":
              return result
      raise RuntimeError(
          "Expected to generate DYNAMIC_UPDATE_SLICE op node in graph."
      )
  
file_path: tensorflow-upstream/tensorflow/lite/testing/op_tests/dynamic_update_slice.py
imports: import functools
  import tensorflow
  from tensorflow.lite.testing.zip_test_utils import create_tensor_data
  from tensorflow.lite.testing.zip_test_utils import make_zip_of_tests
  from tensorflow.lite.testing.zip_test_utils import register_make_test_function
  from tensorflow.python.ops import list_ops
label_desc: Use image node_id 1 for calling a global function with example usage: _tflite_convert_verify_op(tflite_convert_function) and returns: result