code: def filter_ordered_statistics(ordered_statistics, **kwargs):
      """
      Filter OrderedStatistic objects.
  
      Arguments:
          ordered_statistics -- A OrderedStatistic iterable object.
  
      Keyword arguments:
          min_confidence -- The minimum confidence of relations (float).
          min_lift -- The minimum lift of relations (float).
      """
      min_confidence = kwargs.get("min_confidence", 0.0)
      min_lift = kwargs.get("min_lift", 0.0)
  
      for ordered_statistic in ordered_statistics:
          if ordered_statistic.confidence < min_confidence:
              continue
          if ordered_statistic.lift < min_lift:
              continue
          yield ordered_statistic
  
imports: import sys
  import csv
  import argparse
  import json
  import os
  from collections import namedtuple
  from itertools import combinations
  from itertools import chain
label_desc: Use image node_id 4 for calling a global function with example usage: filter_ordered_statistics(ordered_statistics) without return types