code: def keyed_args_ids_for(scenarios):
      arg_values, scenario_ids = [], []
  
      for group_key, scenario_group in scenarios.items():
          arg_values.extend(scenario_group)
          scenario_ids.extend(
              [f"{group_key}[{_}]" for _ in range(len(scenario_group))]
          )
  
      return dict(argvalues=arg_values, ids=scenario_ids)
  
imports: from hyperparameter_hunter.metrics import ScoringMixIn, Metric, format_metrics, wrap_xgboost_metric
  from hyperparameter_hunter.metrics import get_formatted_target_metric, get_clean_prediction
  from collections import OrderedDict
  import numpy
  import pandas
  import pytest
  import sys
  from sklearn.metrics import roc_auc_score, hamming_loss, r2_score, f1_score
label_desc: Use image node_id 3 for calling a global function with example usage: keyed_args_ids_for(scenarios) and returns: dict