code: def emit_metrics(metrics):
      """
      Emit the metrics in the provided Dictionary
  
      Parameters
      ----------
      metrics: Dictionary
      A dictionary of all metrics, when key is metric_name
      value is a metric object
      """
      if metrics:
          for met in metrics:
              logger.info("[METRICS]%s", str(met))
  
file_path: serve/ts/service.py
imports: import logging
  import os
  import time
  from builtins import str
  import ts
  from ts.context import Context, RequestProcessor
  from ts.protocol.otf_message_handler import create_predict_response
  from ts.utils.util import PredictionException, get_yaml_config
label_desc: Use image node_id 1 for calling a global function with example usage: emit_metrics(metrics) without return types