code: def test_frozenset_selection():
      res_df = association_rules(df_freq_items)
  
      sel = res_df[res_df["consequents"] == frozenset((3, 5))]
      assert sel.values.shape[0] == 1
  
      sel = res_df[res_df["consequents"] == frozenset((5, 3))]
      assert sel.values.shape[0] == 1
  
      sel = res_df[res_df["consequents"] == {3, 5}]
      assert sel.values.shape[0] == 1
  
      sel = res_df[res_df["antecedents"] == frozenset((8, 3))]
      assert sel.values.shape[0] == 1
  
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 11 for calling a global function with example usage: test_frozenset_selection() without return types