code: def select_algorithm_parent(n_clicks, selected_metrics):
      options = []
      ctx = dash.callback_context
      prop_id = ctx.triggered_id
      if prop_id == "anomaly-select-algorithm-parent":
          algorithms = AnomalyModel.get_available_algorithms(
              len(selected_metrics)
          )
          options += [{"label": s, "value": s} for s in algorithms]
      return options
  
file_path: merlion/merlion/dashboard/callbacks/anomaly.py
imports: import logging
  import os
  import traceback
  import dash
  from dash import Input, Output, State, callback, dcc
  from merlion.dashboard.utils.file_manager import FileManager
  from merlion.dashboard.models.anomaly import AnomalyModel
  from merlion.dashboard.pages.utils import create_param_table, create_metric_table, create_empty_figure
label_desc: Use image node_id 5 for calling a global function with example usage: select_algorithm_parent(n_clicks, selected_metrics) and returns: options