code: def run(model_path, n_iterations, delegate):
      """Run an interactive segmenter benchmark.
  
      Args:
          model_path: Path to the TFLite model.
          n_iterations: Number of iterations to run the benchmark.
          delegate: CPU or GPU delegate for inference.
  
      Returns:
          List of inference times.
      """
      # Initialize the image segmenter
      options = interactive_segmenter.InteractiveSegmenterOptions(
          base_options=base_options.BaseOptions(
              model_asset_path=model_path, delegate=delegate
          ),
          output_category_mask=True,
          output_confidence_masks=False,
      )
      roi = interactive_segmenter.RegionOfInterest(
          format=interactive_segmenter.RegionOfInterest.Format.KEYPOINT,
          keypoint=keypoint.NormalizedKeypoint(0.44, 0.7),
      )
  
      with interactive_segmenter.InteractiveSegmenter.create_from_options(
          options
      ) as segmenter:
          mp_image = image.Image.create_from_file(
              benchmark_utils.get_test_data_path(
                  base_vision_benchmark_api.VISION_TEST_DATA_DIR,
                  _IMAGE_FILE,
              )
          )
          inference_times = base_vision_benchmark_api.benchmark_task(
              functools.partial(segmenter.segment, roi=roi),
              mp_image,
              n_iterations,
          )
          return inference_times
  
file_path: mediapipe/mediapipe/tasks/python/benchmark/vision/interactive_segmenter/interactive_segmenter_benchmark.py
imports: import functools
  from mediapipe.python._framework_bindings import image
  from mediapipe.tasks.python.benchmark import benchmark_utils
  from mediapipe.tasks.python.benchmark.vision import benchmark
  from mediapipe.tasks.python.benchmark.vision.core import base_vision_benchmark_api
  from mediapipe.tasks.python.components.containers import keypoint
  from mediapipe.tasks.python.core import base_options
  from mediapipe.tasks.python.vision import interactive_segmenter
label_desc: Use image node_id 1 for calling a global function with example usage: run(model_path, n_iterations, delegate) and returns: inference_times