code: def _nyoka_pmml_model(
      self,
      model: typing.Union[
          models.SimplePMMLRuleSetModel, models.Scorecard
      ],
      **build_args,
  ) -> nyoka_pmml.PMML:
      return nyoka_pmml.PMML(
          version=nyoka_constants.PMML_SCHEMA.VERSION,
          Header=nyoka_pmml.Header(
              copyright=NyokaSerializer.COPYRIGHT_STRING,
              description=nyoka_constants.HEADER_INFO.DEFAULT_DESCRIPTION,
              Timestamp=nyoka_pmml.Timestamp(
                  datetime.datetime.now()
                  if self._timestamp is None
                  else self._timestamp
              ),
              Application=nyoka_pmml.Application(
                  name=NyokaSerializer.APPLICATION_NAME,
                  version=version.version,
              ),
          ),
          DataDictionary=None
          if model.dataDictionary is None
          else self._nyoka_data_dictionary(model.dataDictionary),
          **build_args,
      )
  
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 3 for calling the NyokaSerializer obj's underlying member method code with example usage: obj._nyoka_pmml_model(model) and returns: nyoka_pmml