code: def dict_compare_utility(d_actual, d_desired, decimal=2):
      assert d_actual.keys() == d_desired.keys(), "%s != %s" % (
          d_actual,
          d_desired,
      )
      for i in d_actual:
          err_msg = (
              "d_actual[%s]['feature_idx']"
              " != d_desired[%s]['feature_idx']"
              % (
                  i,
                  i,
              )
          )
          assert (
              d_actual[i]["feature_idx"] == d_desired[i]["feature_idx"]
          ), err_msg
          assert_almost_equal(
              actual=d_actual[i]["avg_score"],
              desired=d_desired[i]["avg_score"],
              decimal=decimal,
              err_msg=(
                  "d_actual[%s]['avg_score']"
                  " != d_desired[%s]['avg_score']" % (i, i)
              ),
          )
          assert_almost_equal(
              actual=d_actual[i]["cv_scores"],
              desired=d_desired[i]["cv_scores"],
              decimal=decimal,
              err_msg=(
                  "d_actual[%s]['cv_scores']"
                  " != d_desired[%s]['cv_scores']" % (i, i)
              ),
          )
  
imports: import numpy
  import pandas
  from numpy import nan
  from numpy.testing import assert_almost_equal
  from packaging.version import Version
  from sklearn import __version__
  from sklearn.datasets import load_iris
  from sklearn.decomposition import PCA
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.linear_model import LinearRegression
  from sklearn.metrics import accuracy_score, make_scorer, roc_auc_score
  from sklearn.model_selection import GridSearchCV, GroupKFold
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.pipeline import Pipeline
  from mlxtend.classifier import SoftmaxRegression
  from mlxtend.data import boston_housing_data
  from mlxtend.feature_selection import SequentialFeatureSelector
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 2 for calling a global function with example usage: dict_compare_utility(d_actual, d_desired, decimal) without return types