code: def test_serialize_scorecard_tag(self):
      # arrange
      initial_score = str(random.randint(25, 200))
      scorecard = dataclasses.replace(
          self.empty_scorecard, initialScore=initial_score
      )
  
      # when
      serialized = xmltodict.parse(
          self.nyokaSerializer.serialize(scorecard)
      )
      scorecard_content = serialized["PMML"]["Scorecard"]
  
      # assert
      self.assertEqual(scorecard_content["@functionName"], "regression")
      self.assertEqual(scorecard_content["@algorithmName"], "ScoreCard")
      self.assertEqual(
          scorecard_content["@initialScore"], initial_score
      )
  
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 1 for calling the TestNyokaSerializer obj's underlying member method code with example usage: obj.test_serialize_scorecard_tag() without return types