code: def update_runtime_crypten(selected_date, mode):
      try:
          filter_df = func_df[func_df["mode"] == mode]
          filter_df = filter_df[filter_df["date"] == selected_date]
          filter_df["runtime in seconds"] = filter_df["runtime crypten"]
      except KeyError:
          filter_df = pd.DataFrame()
  
      if filter_df.empty:
          return render_emtpy_figure()
  
      fig = px.bar(
          filter_df,
          x="runtime in seconds",
          y="function",
          color="device",
          orientation="h",
          error_x="runtime crypten error plus",
          error_x_minus="runtime crypten error minus",
          color_discrete_sequence=colors_discrete,
          template=template,
          title="Crypten",
          barmode="group",
      )
  
      fig.update_layout(height=500)
      return fig
  
imports: import pathlib
  import dash
  import dash_core_components
  import dash_html_components
  import numpy
  import pandas
  import plotly.express
  import plotly.graph_objects
  from dash.dependencies import Input, Output
  from load_data import get_aggregated_data, get_available_dates
  from plotly.subplots import make_subplots
label_desc: Use image node_id 1 for calling a global function with example usage: update_runtime_crypten(selected_date, mode) and returns: fig, render_emtpy_figure