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
  from numpy.testing import assert_almost_equal
  from sklearn.datasets import load_iris
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.linear_model import LinearRegression
  from sklearn.metrics import roc_auc_score
  from sklearn.neighbors import KNeighborsClassifier
  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 1 for calling a global function with example usage: dict_compare_utility(d_actual, d_desired, decimal) without return types