code: def update_click_data_on_subset_changes(click_data: dict) -> dict:
      """Update click data on subset changes to always correspond to the feature selector graph.
  
      Parameters
      ----------
      click_data : dict
          Feature importance click data
  
      Returns
      -------
      dict
          Updated feature importance click data
      """
      point = click_data["points"][0]
      point["curveNumber"] = 0
      click_data = {"points": [point]}
      return click_data
  
imports: from typing import Optional, Tuple
  import numpy
  import pandas
  import datetime
  from dash import dcc, html
  import dash_bootstrap_components
label_desc: Use image node_id 10 for calling a global function with example usage: update_click_data_on_subset_changes(click_data) and returns: click_data