code: def test_default():
      res_df = association_rules(df_freq_items)
      res_df["antecedents"] = res_df["antecedents"].apply(
          lambda x: str(frozenset(x))
      )
      res_df["consequents"] = res_df["consequents"].apply(
          lambda x: str(frozenset(x))
      )
      res_df.sort_values(columns_ordered, inplace=True)
      res_df.reset_index(inplace=True, drop=True)
  
      expect = pd.DataFrame(
          [
              [(8,), (5,), 0.6, 1.0, 0.6, 1.0, 1.0, 0.0, np.inf, 0],
              [(6,), (5,), 0.6, 1.0, 0.6, 1.0, 1.0, 0.0, np.inf, 0],
              [(8, 3), (5,), 0.6, 1.0, 0.6, 1.0, 1.0, 0.0, np.inf, 0],
              [
                  (8, 5),
                  (3,),
                  0.6,
                  0.8,
                  0.6,
                  1.0,
                  1.25,
                  0.12,
                  np.inf,
                  0.5,
              ],
              [
                  (8,),
                  (3, 5),
                  0.6,
                  0.8,
                  0.6,
                  1.0,
                  1.25,
                  0.12,
                  np.inf,
                  0.5,
              ],
              [(3,), (5,), 0.8, 1.0, 0.8, 1.0, 1.0, 0.0, np.inf, 0],
              [(5,), (3,), 1.0, 0.8, 0.8, 0.8, 1.0, 0.0, 1.0, 0],
              [(10,), (5,), 0.6, 1.0, 0.6, 1.0, 1.0, 0.0, np.inf, 0],
              [(8,), (3,), 0.6, 0.8, 0.6, 1.0, 1.25, 0.12, np.inf, 0.5],
          ],
          columns=columns_ordered,
      )
  
      expect["antecedents"] = expect["antecedents"].apply(
          lambda x: str(frozenset(x))
      )
      expect["consequents"] = expect["consequents"].apply(
          lambda x: str(frozenset(x))
      )
      expect.sort_values(columns_ordered, inplace=True)
      expect.reset_index(inplace=True, drop=True)
  
      assert res_df.equals(expect), res_df
  
imports: import numpy
  import pandas
  import pytest
  from numpy.testing import assert_raises
  from mlxtend.frequent_patterns import apriori, association_rules
label_desc: Use image node_id 1 for calling a global function with example usage: test_default() without return types