class_docstr: TaskSampler that distributes a Meta-World benchmark across workers.
  
  Args:
      benchmark (metaworld.Benchmark): Benchmark to sample tasks from.
      kind (str): Must be either 'test' or 'train'. Determines whether to
          sample training or test tasks from the Benchmark.
      wrapper (Callable[garage.Env, garage.Env] or None): Wrapper to apply to
          env instances.
      add_env_onehot (bool): If true, a one-hot representing the current
          environment name will be added to the environments. Should only be
          used with multi-task benchmarks.
  
  Raises:
      ValueError: If kind is not 'train' or 'test'. Also raisd if
          `add_env_onehot` is used on a metaworld meta learning (not
          multi-task) benchmark.
class_docstr_tok: ["TaskSampler","that","distributes","a","Meta-World","benchmark","across","workers",".","Args",":","benchmark","(","metaworld.Benchmark",")",":","Benchmark","to","sample","tasks","from",".","kind","(","str",")",":","Must","be","either","'test","'","or","'train","'",".","Determines","whether","to","sample","training","or","test","tasks","from","the","Benchmark",".","wrapper","(","Callable","[","garage.Env",",","garage.Env","]","or","None",")",":","Wrapper","to","apply","to","env","instances",".","add_env_onehot","(","bool",")",":","If","true",",","a","one-hot","representing","the","current","environment","name","will","be","added","to","the","environments",".","Should","only","be","used","with","multi-task","benchmarks",".","Raises",":","ValueError",":","If","kind","is","not","'train","'","or","'test","'",".","Also","raisd","if","`","add_env_onehot","`","is","used","on","a","metaworld","meta","learning","(","not","multi-task",")","benchmark","."]
docstr: Reshuffles the task orders.
docstr_tok: ["Reshuffles","the","task","orders","."]
code: def _shuffle_tasks(self):
      """Reshuffles the task orders."""
      for tasks in self._task_orders.values():
          np.random.shuffle(tasks)
  
imports: import abc
  import copy
  import math
  import numpy
  from garage.envs import GymEnv, TaskNameWrapper, TaskOnehotWrapper
  from garage.sampler.env_update import ExistingEnvUpdate, NewEnvUpdate, SetTaskUpdate
label_desc: Use image node_id 2 for calling the MetaWorldTaskSampler obj's underlying member method code with example usage: obj._shuffle_tasks() without return types