code: def test_forbidden_cases():
      # Import, construct environments here to avoid using up too much
      # resources if this test isn't run.
      # pylint: disable=import-outside-toplevel
      import metaworld
  
      ml1 = metaworld.ML1("push-v1")
      with pytest.raises(ValueError):
          MetaWorldSetTaskEnv(ml1, "train", add_env_onehot=True)
      with pytest.raises(ValueError):
          MetaWorldSetTaskEnv(ml1, "Test")
  
file_path: garage/tests/garage/envs/test_metaworld_set_task_env.py
imports: import pytest
  from garage.envs import MetaWorldSetTaskEnv
  from garage.experiment.task_sampler import MetaWorldTaskSampler
  from garage.sampler import LocalSampler, SetTaskUpdate, WorkerFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_forbidden_cases() without return types