def METHOD_NAME(task_type: TaskType, task_id: str) -> Dict[str, Any]:
    task = ["det", "-m", conf.make_master_url(), task_type, "list", "--json"]
    task_data = json.loads(subprocess.check_output(task).decode())
    return next((d for d in task_data if d["id"] == task_id), {})