code: def durations(experiments, with_evc_tree=True):
      """
      Make a plot to visualize the performance of experiment at different time duration.
  
      The x-axis contain relative time duration start from the first trial submitted.
  
      3 formats are supported for the experiments:
  
          1. List of experiments. The names of the experiments will be used for the figure labels.
          2. Dictionary of experiments. The keys of the dictionary will be used for the figure labels.
          3. Dictionary of list of experiments. The keys of the dictionary will be used for the figure \
          labels.
  
      Parameters
      ----------
      experiments: list or dict
          List or dictionary of experiments.
  
      with_evc_tree: bool, optional
          Fetch all trials from the EVC tree.
          Default: True
  
      Returns
      -------
      plotly.graph_objects.Figure
  
      Raises
      ------
      ValueError
          If no experiment is provided.
  
      """
      return backend.regrets(
          experiments,
          with_evc_tree=with_evc_tree,
          order_by="completed",
          build_frame_fn=backend.build_durations_frame,
          return_var=False,
          title="Time to result",
      )
  
file_path: orion/src/orion/plotting/base.py
imports: import orion.plotting.backend_plotly
label_desc: Use image node_id 6 for calling a global function with example usage: durations(experiments, with_evc_tree) and returns: backend