code: def assert_eps_eq(ground_truth_eps, test_eps):
      # We should have the exact same epsectories.
      ground_truth_set = {
          (tuple(eps.actions), tuple(eps.observations))
          for eps in ground_truth_eps.split()
      }
      test_set = {
          (tuple(eps.actions), tuple(eps.observations))
          for eps in test_eps.split()
      }
  
      pprint.pprint(ground_truth_set)
      pprint.pprint(test_set)
      assert test_set == ground_truth_set
  
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 5 for calling a global function with example usage: assert_eps_eq(ground_truth_eps, test_eps) without return types