code: 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,
      )
  
imports: import os
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: get_task(benchmark, env_id) and returns: next