code: def test_step_type_property_time_step(sample_data):
      sample_data["step_type"] = StepType.FIRST
      s = TimeStep(**sample_data)
      assert s.first
  
      sample_data["step_type"] = StepType.MID
      s = TimeStep(**sample_data)
      assert s.mid
  
      sample_data["step_type"] = StepType.TERMINAL
      s = TimeStep(**sample_data)
      assert s.terminal and s.last
  
      sample_data["step_type"] = StepType.TIMEOUT
      s = TimeStep(**sample_data)
      assert s.timeout and s.last
  
imports: import akro
  import gym.spaces
  import numpy
  import pytest
  from garage import EnvSpec, EnvStep, EpisodeBatch, StepType, TimeStep, TimeStepBatch
label_desc: Use image node_id 27 for calling a global function with example usage: test_step_type_property_time_step(sample_data) without return types