(benchmark, env_id)
return next(filter(lambda task: task['env_id'] == env_id, benchmark['tasks']), None)
Get a task by env_id. Return None if the benchmark doesn't have the env
Get a task by env_id. Return None if the benchmark doesn't have the env
Get a task by env_id . Return None if the benchmark doesn t have the env
def get_task(benchmark, env_id):
    """Get a task by env_id. Return None if the benchmark doesn't have the env"""
    return next(filter(lambda task: task['env_id'] == env_id, benchmark['tasks']), None)
def get_task ( benchmark , env_id ) : return next ( filter ( lambda task : task [ 'env_id' ] == env_id , benchmark [ 'tasks' ] ) , None )