code: def test_serialize_complex_partial_score(self):
      # arrange
      # score = 4 * age4 + 3
      scorecard = dataclasses.replace(
          self.empty_scorecard, characteristics=self.characteristics4
      )
  
      # when
      serialized = xmltodict.parse(
          TestNyokaSerializer.nyokaSerializer.serialize(scorecard)
      )
      score_content = serialized["PMML"]["Scorecard"][
          "Characteristics"
      ]["Characteristic"]["Attribute"]["ComplexPartialScore"]
  
      self.assertEqual(score_content["Apply"]["@function"], "+")
      self.assertEqual(score_content["Apply"]["Constant"], "3")
      self.assertEqual(
          score_content["Apply"]["Apply"]["@function"], "*"
      )
      self.assertEqual(
          score_content["Apply"]["Apply"]["FieldRef"]["@field"], "age4"
      )
      self.assertEqual(score_content["Apply"]["Apply"]["Constant"], "4")
  
file_path: AIX360/tests/rule_induction/trxf/pmml_export/test_nyoka_serialize_scorecard.py
imports: import datetime
  import random
  import unittest
  import dataclasses
  import xmltodict
  import aix360.algorithms.rule_induction.trxf.pmml_export.models
  import aix360.algorithms.rule_induction.trxf.pmml_export.serializer
label_desc: Use image node_id 8 for calling the TestNyokaSerializer obj's underlying member method code with example usage: obj.test_serialize_complex_partial_score() without return types