    def summary(
        self, capabilities: Optional[List[str]] = None, file: TextIO = sys.stdout, **kwargs
    ):
        """
        Prints a summary of the test results.

        # Parameters

        capabilities : `List[str]`, optional (default = `None`)
            If not None, will only show tests with these capabilities.
        **kwargs : `type`
            Will be passed as arguments to each test.summary()
        """
        old_stdout = sys.stdout
        try:
            sys.stdout = file
            self._summary(capabilities=capabilities, **kwargs)
        finally:
            sys.stdout = old_stdout
Prints a summary of the test results.

# Parameters

capabilities : `List[str]`, optional (default = `None`)
If not None, will only show tests with these capabilities.
**kwargs : `type`
Will be passed as arguments to each test.summary()
allennlp/confidence_checks/task_checklists/task_suite.py