code: def test_env_infos(env_type):
      env = env_type()
      task = env.sample_tasks(1)[0]
      env.set_task(task)
      _, _, _, infos = env.step(env.action_space.sample())
      for k in infos:
          if k == "task_name":
              assert isinstance(infos[k], str)
          else:
              assert isinstance(infos[k], np.ndarray)
  
imports: import pickle
  import numpy
  import pytest
  from garage.envs.mujoco.half_cheetah_dir_env import HalfCheetahDirEnv
  from garage.envs.mujoco.half_cheetah_vel_env import HalfCheetahVelEnv
label_desc: Use image node_id 3 for calling a global function with example usage: test_env_infos(env_type) without return types