class_docstr: CartPoleMassEnv varies the weights of the cart and the pole.
class_docstr_tok: ["CartPoleMassEnv","varies","the","weights","of","the","cart","and","the","pole","."]
docstr: Args:
      task (Tuple[float]): Masses of the cart and the pole.
docstr_tok: ["Args",":","task","(","Tuple","[","float","]",")",":","Masses","of","the","cart","and","the","pole","."]
code: def set_task(self, task):
      """
      Args:
          task (Tuple[float]): Masses of the cart and the pole.
      """
      self.masscart = task[0]
      self.masspole = task[1]
  
file_path: ray/rllib_contrib/maml/src/rllib_maml/envs/cartpole_mass.py
imports: import numpy
  from gymnasium.envs.classic_control.cartpole import CartPoleEnv
  from gymnasium.utils import EzPickle
  from ray.rllib.env.apis.task_settable_env import TaskSettableEnv
label_desc: Use image node_id 2 for calling the CartPoleMassEnv obj's underlying member method code with example usage: obj.set_task(task) without return types