code: def test_sort_features_by_priority_same_model(sample_features):
      # test the ordering of feature importance computation when prior feature importance computation from the same fitted model was done
      prev_importance_df = evaluated_fi_df_template(sample_features)
      sorted_features = sort_features_by_priority(
          features=sample_features,
          prev_importance_df=prev_importance_df,
          using_prev_fit_fi=set(),
      )
      assert (
          sorted_features
          == prev_importance_df.sort_values("importance").index.tolist()
      )
  
file_path: autogluon/core/tests/unittests/test_feature_selection.py
imports: import numpy
  import pandas
  import pytest
  from numpy.core.fromnumeric import sort
  from autogluon.core.utils.feature_selection import *
  from autogluon.core.utils.utils import unevaluated_fi_df_template
label_desc: Use image node_id 11 for calling a global function with example usage: test_sort_features_by_priority_same_model(sample_features) without return types