code: def update_metrics():
      if execution_params["handler_profiling"]:
          opt_metrics = {
              "handler_preprocess.txt": "ts_handler_preprocess",
              "handler_inference.txt": "ts_handler_inference",
              "handler_postprocess.txt": "ts_handler_postprocess",
          }
          metrics.update(opt_metrics)
      return metrics
  
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 18 for calling a global function with example usage: update_metrics() and returns: metrics