class_docstr: Example of a curriculum learning capable env.
  
  This simply wraps a FrozenLake-v1 env and makes it harder with each
  task. Task (difficulty levels) can range from 1 to 10.
class_docstr_tok: ["Example","of","a","curriculum","learning","capable","env",".","This","simply","wraps","a","FrozenLake-v1","env","and","makes","it","harder","with","each","task",".","Task","(","difficulty","levels",")","can","range","from","1","to","10","."]
docstr: Implement this to set the task (curriculum level) for this env.
docstr_tok: ["Implement","this","to","set","the","task","(","curriculum","level",")","for","this","env","."]
code: def set_task(self, task):
      """Implement this to set the task (curriculum level) for this env."""
      self.cur_level = task
      self.switch_env = True
  
file_path: ray/rllib/examples/env/curriculum_capable_env.py
imports: import gymnasium
  import random
  from ray.rllib.env.apis.task_settable_env import TaskSettableEnv
  from ray.rllib.env.env_context import EnvContext
  from ray.rllib.utils.annotations import override
label_desc: Use image node_id 6 for calling the CurriculumCapableEnv obj's underlying member method code with example usage: obj.set_task(task) without return types