code: def _template_regrets(name, time_unit):
      template = (
          "algorithm: " + name + "<br>"
          "best: %{y}<br>"
          "workers: %{customdata[0]}<br>"
          "duration: %{customdata[1]} " + time_unit
      )
      template += "<extra></extra>"
      return template
  
imports: import functools
  from collections.abc import Iterable
  import numpy
  import pandas
  import plotly.express
  import plotly.graph_objects
  from plotly.subplots import make_subplots
  import orion.analysis
  import orion.analysis.base
  from orion.algo.space import Categorical, Fidelity
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 13 for calling a global function with example usage: _template_regrets(name, time_unit) and returns: template