code: def _nyoka_scorecard_model(
      self, scorecard: models.Scorecard
  ) -> nyoka_pmml.Scorecard:
      return nyoka_pmml.Scorecard(
          functionName="regression",
          algorithmName="ScoreCard",
          MiningSchema=None
          if scorecard.miningSchema is None
          else self._nyoka_mining_schema(scorecard.miningSchema),
          initialScore=scorecard.initialScore,
          useReasonCodes="false",
          Output=None
          if scorecard.output is None
          else nyoka_pmml.Output(
              OutputField=[
                  nyoka_pmml.OutputField(
                      name=outputField.name,
                      feature=outputField.feature,
                      dataType=outputField.dataType.name,
                      optype=outputField.optype.name,
                  )
                  for outputField in scorecard.output.outputFields
              ]
          ),
          Characteristics=None
          if scorecard.characteristics is None
          else self._nyoka_pmml_characteristics(
              scorecard.characteristics
          ),
      )
  
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 10 for calling the NyokaSerializer obj's underlying member method code with example usage: obj._nyoka_scorecard_model(scorecard) and returns: nyoka_pmml