code: def get_group_name(
      selected_feature: Optional[str], features_groups: Optional[dict]
  ) -> Optional[str]:
      """Get the group feature name if the selected feature is one of the groups.
  
      Parameters
      ----------
      selected_feature : Optional[str]
          Selected feature
      features_groups : Optional[dict]
          Groups names and corresponding list of features
  
      Returns
      -------
      Optional[str]
          Group feature name
      """
      group_name = (
          selected_feature
          if (
              features_groups is not None
              and selected_feature in features_groups.keys()
          )
          else None
      )
      return group_name
  
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 8 for calling a global function with example usage: get_group_name(selected_feature, features_groups) and returns: group_name