code: def _sample_models(models, n_models_to_sample, seed):
      """Method to sample models from the given DataFrame.
  
      Parameters
      ----------
      models : pd.DataFrame
          DataFrame with the results for the given dataset split.
      n_models_to_sample : int
          Number of models to sample.
      seed : int
          Seed for the random number generator and sampling.
      """
      np.random.seed(seed)
      indexes_to_sample = np.random.choice(
          list(models.index),
          n_models_to_sample,
          replace=True,
      )
      sampled_models = models.loc[list(set(indexes_to_sample))]
      return sampled_models
  
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 4 for calling a global function with example usage: _sample_models(models, n_models_to_sample, seed) and returns: sampled_models