code: def generate_latency_graph():
      click.secho("*Preparing graphs...", fg="green")
      df = pd.read_csv(
          os.path.join(
              execution_params["tmp_dir"], "benchmark", "predict.txt"
          ),
          header=None,
          names=["latency"],
      )
      iteration = df.index
      latency = df.latency
      a4_dims = (11.7, 8.27)
      plt.figure(figsize=(a4_dims))
      plt.xlabel("Requests")
      plt.ylabel("Prediction time")
      plt.title("Prediction latency")
      plt.bar(iteration, latency)
      plt.savefig(
          f"{execution_params['report_location']}/benchmark/predict_latency.png"
      )
  
imports: import csv
  import json
  import os
  import re
  import shutil
  import sys
  import tempfile
  import time
  from subprocess import PIPE, Popen
  from urllib.parse import urlparse
  import click
  import click_config_file
  import matplotlib.pyplot
  import numpy
  import pandas
  import requests
label_desc: Use image node_id 22 for calling a global function with example usage: generate_latency_graph() without return types