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 sample n random tasks.
docstr_tok: ["Implement","this","to","sample","n","random","tasks","."]
code: def sample_tasks(self, n_tasks):
      """Implement this to sample n random tasks."""
      return [random.randint(1, 10) for _ in range(n_tasks)]
  
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 4 for calling the CurriculumCapableEnv obj's underlying member method code with example usage: obj.sample_tasks(n_tasks) and returns: unknown