':type args: TestConfig
:type test_case: junit_xml.TestCase
:type properties: dict[str, str] | None
:rtype: str | None'

def save_junit(self, args, test_case, properties=None):

    path = self.create_path('junit', '.xml')
    test_suites = [self.junit.TestSuite(name='ansible-test', test_cases=[test_case], timestamp=datetime.datetime.utcnow().replace(microsecond=0).isoformat(), properties=properties)]
    report = self.junit.TestSuite.to_xml_string(test_suites=test_suites, prettyprint=True, encoding='utf-8')
    if args.explain:
        return
    with open(path, 'wb') as xml:
        xml.write(report.encode('utf-8', 'strict'))
