code: def test_override_metric_with_support():
      res_df = association_rules(
          df_freq_items_with_colnames, min_threshold=0.8
      )
      # default metric is confidence
      assert res_df.values.shape[0] == 9
  
      res_df = association_rules(
          df_freq_items_with_colnames,
          min_threshold=0.8,
          metric="support",
      )
      assert res_df.values.shape[0] == 2
  
      res_df = association_rules(
          df_freq_items_with_colnames,
          min_threshold=0.8,
          support_only=True,
      )
      assert res_df.values.shape[0] == 2
  
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 12 for calling a global function with example usage: test_override_metric_with_support() without return types