code: def _nyoka_rule_set_model(
      self, rule_set_model: models.RuleSetModel
  ) -> nyoka_pmml.RuleSetModel:
      return nyoka_pmml.RuleSetModel(
          functionName="classification",
          algorithmName="RuleSet",
          MiningSchema=None
          if rule_set_model.miningSchema is None
          else self._nyoka_mining_schema(rule_set_model.miningSchema),
          RuleSet=None
          if rule_set_model.ruleSet is None
          else self._nyoka_rule_set(rule_set_model.ruleSet),
      )
  
imports: import typing
  import datetime
  import io
  import nyoka.PMML44
  import nyoka.base.constants
  from .abstract_serializer import AbstractSerializer
  from ..None import __version__
  from ..None import models
label_desc: Use image node_id 6 for calling the NyokaSerializer obj's underlying member method code with example usage: obj._nyoka_rule_set_model(rule_set_model) and returns: nyoka_pmml