code: def build_durations_frame(
      experiments, names=None, with_evc_tree=True, order_by="suggested"
  ):
      """Builds the dataframe for the duration plot"""
      x = "duration"
      x_title = "Experiment duration by second(s)"
      frames, group, average_key, _, y, _ = build_regrets_frame(
          experiments, names, with_evc_tree, order_by
      )
  
      return frames, group, average_key, x, y, x_title
  
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 7 for calling a global function with example usage: build_durations_frame(experiments, names, with_evc_tree, order_by) and returns: frames,  group,  average_key,  x,  y,  x_title