code: def get_metrics(benchmarks, selection):
      # select metrics to plot using selection function
      explainer_metrics = set()
      for explainer in benchmarks:
          scores = benchmarks[explainer]
          if len(explainer_metrics) == 0:
              explainer_metrics = set(scores["metrics"])
          else:
              explainer_metrics = selection(
                  explainer_metrics, set(scores["metrics"])
              )
  
      return list(explainer_metrics)
  
file_path: shap/shap/benchmark/framework.py
imports: import itertools
  import matplotlib.pyplot
  import numpy
  import pandas
  from .None import perturbation
label_desc: Use image node_id 3 for calling a global function with example usage: get_metrics(benchmarks, selection) and returns: list