code: def test_serialize_attribute_tag(self):
      # arrange
      scorecard1 = dataclasses.replace(
          self.empty_scorecard, characteristics=self.characteristics1
      )
      scorecard2 = dataclasses.replace(
          self.empty_scorecard, characteristics=self.characteristics2
      )
  
      # when
      serialized1 = xmltodict.parse(
          TestNyokaSerializer.nyokaSerializer.serialize(scorecard1)
      )
      serialized2 = xmltodict.parse(
          TestNyokaSerializer.nyokaSerializer.serialize(scorecard2)
      )
      attribute1_content = serialized1["PMML"]["Scorecard"][
          "Characteristics"
      ]["Characteristic"]["Attribute"]
      attribute2_content = serialized2["PMML"]["Scorecard"][
          "Characteristics"
      ]["Characteristic"]["Attribute"]
  
      # assert
      self.assertEqual(attribute1_content["@partialScore"], "5")
      self.assertEqual(attribute2_content["@partialScore"], "8")
  
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 4 for calling the TestNyokaSerializer obj's underlying member method code with example usage: obj.test_serialize_attribute_tag() without return types