def METHOD_NAME(self):
    assert isinstance(self.benchmark_schema, str)
    if self.benchmark_schema.startswith('<'):
        try:
            ElementTree.fromstring(self.benchmark_schema)
        except ElementTree.ParseError as e:
            assert False, "The 'benchmark_schema' value contains invalid XML: " + str(e)
    else:
        try:
            json.loads(self.benchmark_schema)
        except json.decoder.JSONDecodeError as e:
            assert False, "The 'benchmark_schema' value contains invalid JSON: " + str(e)