def METHOD_NAME(self, message: TestRunMessage) -> None:
    if message.status == TestRunStatus.INITIALIZING:
        self._html_report.pytest_sessionstart(self._session)
        self._html_report.title = message.run_name
        information = OrderedDict(
            {
                "test project": message.test_project,
                "test pass": message.test_pass,
                "tags": message.tags,
                "runbook_path": constants.RUNBOOK_FILE,
                "runbook": mask(constants.RUNBOOK),
            }
        )
        setattr(  # noqa: B010
            self._config,
            "_metadata",
            OrderedDict(
                {key: value for key, value in information.items() if value}
            ),
        )
    elif message.status == TestRunStatus.FAILED:
        report = CollectReport(
            nodeid="run failed",
            outcome="failed",
            longrepr=message.message,
            result=None,
        )
        self._html_report.pytest_collectreport(report)