code: def _minimize_rule_list(pos, neg, rules, n):
      """
      Pruning rules in a rule list
  
      Parameters
      ----------
      pos : const double[::1, :]
          Positive instances of pruning data set
      neg : const double[::1, :]
          Negative instances of pruning data set
      rules: list
          Input rule list
  
      Returns
      -------
      double
          Pruned rule list
      """
      return min(
          __last_sequences(rules, True, True),
          key=lambda rule_list_iter: _mdl(pos, neg, rule_list_iter, n),
      )
  
file_path: AIX360/aix360/algorithms/rule_induction/ripper/pruning.py
imports: import numba
  import numpy
  from aix360.algorithms.rule_induction.ripper.binding import _rule_predict, _rule_list_predict
  from aix360.algorithms.rule_induction.ripper.mdl import _mdl
label_desc: Use image node_id 6 for calling a global function with example usage: _minimize_rule_list(pos, neg, rules, n) and returns: min