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_fragment_worker.py
imports: import math
  import pprint
  import numpy
  import pytest
  from garage import EpisodeBatch, StepType
  from garage.envs import GridWorldEnv, PointEnv
  from garage.experiment.task_sampler import SetTaskSampler
  from garage.np.policies import FixedPolicy, ScriptedPolicy
  from garage.sampler import FragmentWorker, LocalSampler, WorkerFactory
label_desc: Use image node_id 2 for calling a global function with example usage: policy() and returns: ScriptedPolicy