code: def draw_table_with_metrics(met, hoverData, data_virt):
      Ox = name_1
      Oy = name_2
      if met == "WER":
          cerower = "wer_"
      else:
          cerower = "cer_"
      da = pd.DataFrame.from_records(data_virt)
  
      c = da
      fig = px.scatter(
          c,
          x=cerower + Ox,
          y=cerower + Oy,
          width=1000,
          height=900,
          color="num_words",
          hover_data={
              "text": True,
              Ox: True,
              Oy: True,
              "wer_" + Ox: True,
              "wer_" + Oy: True,
              "cer_" + Ox: True,
              "cer_" + Oy: True,
              "audio_filepath": True,
          },
      )  #'numwords': True,
      fig.add_shape(
          type="line",
          x0=0,
          y0=0,
          x1=100,
          y1=100,
          line=dict(
              color="Red",
              width=1,
              dash="dot",
          ),
      )
      fig.update_layout(clickmode="event+select")
      fig.update_traces(marker_size=10)
      path = None
  
      if hoverData is not None:
          path = str(hoverData["points"][0]["customdata"][-1])
  
      return fig, path
  
imports: import argparse
  import base64
  import csv
  import datetime
  import difflib
  import io
  import json
  import logging
  import math
  import operator
  import os
  import pickle
  from collections import defaultdict
  from os.path import expanduser
  from pathlib import Path
  import dash
  import dash_bootstrap_components
  import diff_match_patch
  import editdistance
  import jiwer
  import librosa
  import numpy
  import pandas
  import soundfile
  import tqdm
  from dash import dash_table, dcc, html
  from dash.dependencies import Input, Output, State
  from dash.exceptions import PreventUpdate
  from plotly import express
  from plotly import graph_objects
  from plotly.subplots import make_subplots
label_desc: Use image node_id 12 for calling a global function with example usage: draw_table_with_metrics(met, hoverData, data_virt) and returns: fig,  path