code: def test_asap_result(self, args, input_data):
      output_file, data = PolygonWriter(**args)(input_data)
      self.assertEqual(os.path.exists(output_file), True)
      file_ext = "".join(
          pathlib.Path(input_data["image_path"]).suffixes
      )
      self.assertIn(file_ext.lower(), [".nii", ".nii.gz"])
      file_ext = "".join(pathlib.Path(output_file).suffixes)
      self.assertIn(file_ext.lower(), [".xml"])
  
imports: import json
  import os
  import pathlib
  import unittest
  import nrrd
  import numpy
  import torch
  from parameterized import parameterized
  from monailabel.transform.writer import DetectionWriter, PolygonWriter, Writer
label_desc: Use image node_id 1 for calling the TestPolygonWriter obj's underlying member method code with example usage: obj.test_asap_result(args, input_data) without return types