code: def _get_best_models_ordered(models, alpha_points):
      if isinstance(alpha_points, float):
          alpha_points = [alpha_points]
      best_models_ordered = {}
      for alpha in alpha_points:
          best_models_ordered[alpha] = (
              models[f"alpha_{alpha}"]
              .sort_values(ascending=False)
              .index
          )
      return best_models_ordered
  
file_path: aequitas/src/aequitas/fairflow/utils/evaluation.py
imports: from typing import Literal, Union
  import numpy
  import pandas
  from ..evaluation import Result
label_desc: Use image node_id 7 for calling a global function with example usage: _get_best_models_ordered(models, alpha_points) and returns: best_models_ordered