def METHOD_NAME(self) -> Optional[str]:
    if not len(self.hosts):
        raise Exception(
            "No hosts in LinuxPerfMeasurement while getting perf version"
        )
    version_job = self.hosts[0].run("perf --version", job_level=ResultLevel.DEBUG)
    if version_job.passed:
        match = re.match(r"perf version (.+?)", version_job.stdout)
        if match:
            return match.group(1)
    return None