def METHOD_NAME(self, platform: str) -> str:
    task_results = self.workflow.osbs.get_task_results(self.workflow.pipeline_run_name)
    task_platform = platform.replace('_', '-')
    try:
        task_name = next(filter(lambda task_name:  # pylint: disable=W1639
                                task_name.startswith('binary-container-build') and
                                task_platform in task_name, task_results))
        if 'task_result' not in task_results[task_name]:
            raise RuntimeError(f"task_results is missing from: {task_name}")
        return task_results[task_name]['task_result']
    except StopIteration:
        # pylint: disable=W0707
        raise RuntimeError(f"unable to find build host for platform: {platform}")