code: def test_step_type_property_env_step(sample_data):
      sample_data["step_type"] = StepType.FIRST
      s = EnvStep(**sample_data)
      assert s.first
  
      sample_data["step_type"] = StepType.MID
      s = EnvStep(**sample_data)
      assert s.mid
  
      sample_data["step_type"] = StepType.TERMINAL
      s = EnvStep(**sample_data)
      assert s.terminal and s.last
  
      sample_data["step_type"] = StepType.TIMEOUT
      s = EnvStep(**sample_data)
      assert s.timeout and s.last
  
file_path: garage/tests/garage/test_environment.py
imports: import akro
  import cloudpickle
  import numpy
  import pytest
  from garage import EnvSpec, EnvStep, StepType
label_desc: Use image node_id 4 for calling a global function with example usage: test_step_type_property_env_step(sample_data) without return types