code: def test_serialize_set(self):
      # arrange
      # types: very good, good, normal, bad
      scorecard = dataclasses.replace(
          self.empty_scorecard, characteristics=self.characteristics3
      )
  
      # when
      serialized = xmltodict.parse(
          TestNyokaSerializer.nyokaSerializer.serialize(scorecard)
      )
      set_content = serialized["PMML"]["Scorecard"]["Characteristics"][
          "Characteristic"
      ]["Attribute"]
  
      # assert
      self.assertEqual(
          set_content[0]["SimplePredicate"]["@field"], "type"
      )
      self.assertEqual(
          set_content[0]["SimplePredicate"]["@operator"], "equal"
      )
      self.assertEqual(
          set_content[0]["SimplePredicate"]["@value"], "normal"
      )
      self.assertEqual(
          set_content[1]["SimplePredicate"]["@field"], "type"
      )
      self.assertEqual(
          set_content[1]["SimplePredicate"]["@operator"], "equal"
      )
      self.assertEqual(
          set_content[1]["SimplePredicate"]["@value"], "good"
      )
      self.assertEqual(
          set_content[2]["SimplePredicate"]["@field"], "type"
      )
      self.assertEqual(
          set_content[2]["SimplePredicate"]["@operator"], "equal"
      )
      self.assertEqual(
          set_content[2]["SimplePredicate"]["@value"], "very good"
      )
  
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 7 for calling the TestNyokaSerializer obj's underlying member method code with example usage: obj.test_serialize_set() without return types