code: def _convert_to_simple_rules(trxf_rules):
      simple_rules = []
      for rule in trxf_rules:
          predicate = _convert_to_pmml_predicate(rule.conjunction)
          confidence = (
              rule.confidence
              if rule.confidence is not None
              else models.DEFAULT_CONFIDENCE
          )
          weight = (
              rule.weight
              if rule.weight is not None
              else models.DEFAULT_WEIGHT
          )
          simple_rule = models.SimpleRule(
              predicate=predicate,
              score=str(rule.label),
              id=str(rule.conjunction),
              recordCount=rule.record_count,
              nbCorrect=rule.nb_correct,
              confidence=confidence,
              weight=weight,
          )
          simple_rules.append(simple_rule)
      return simple_rules
  
file_path: AIX360/aix360/algorithms/rule_induction/trxf/pmml_export/reader/trxf_reader.py
imports: from typing import Dict
  import numpy
  import pandas
  from aix360.algorithms.rule_induction.trxf.classifier import ruleset_classifier
  from aix360.algorithms.rule_induction.trxf.classifier.ruleset_classifier import RuleSetClassifier
  from aix360.algorithms.rule_induction.trxf.core import Conjunction, Relation
  from aix360.algorithms.rule_induction.trxf.pmml_export import models
  from aix360.algorithms.rule_induction.trxf.pmml_export.models.data_dictionary import Value
  from aix360.algorithms.rule_induction.trxf.pmml_export.reader import AbstractReader
  from aix360.algorithms.rule_induction.trxf.pmml_export.models import SimplePredicate, Operator, CompoundPredicate, BooleanOperator
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_to_simple_rules(trxf_rules) and returns: simple_rules