def METHOD_NAME(self, format_only, outfile_predix=None):
    """Test using the metric in the same way as Evaluator."""
    metric = MOTChallengeMetric(
        metric=['HOTA', 'CLEAR', 'Identity'],
        format_only=format_only,
        outfile_prefix=outfile_predix)
    metric.dataset_meta = {'classes': ('pedestrian', )}
    data_batch = dict(input=None, data_samples=None)
    predictions = self._get_predictions_demo()
    metric.process(data_batch, predictions)
    eval_results = metric.evaluate()
    return eval_results