code: def policy():
      return ScriptedPolicy(
          scripted_actions=[
              2,
              2,
              1,
              0,
              3,
              1,
              1,
              1,
              2,
              2,
              1,
              1,
              1,
              2,
              2,
              1,
          ]
      )
  
file_path: garage/tests/garage/sampler/test_vec_worker.py
imports: import pprint
  import pytest
  from garage.envs import GridWorldEnv
  from garage.experiment.task_sampler import EnvPoolSampler
  from garage.np.policies import ScriptedPolicy
  from garage.sampler import LocalSampler, VecWorker, WorkerFactory
label_desc: Use image node_id 2 for calling a global function with example usage: policy() and returns: ScriptedPolicy