docstr: Test that episodes are terminated upon reaching `time_limit` steps.
code: def test_time_limit_terminates_epsiodes(self):
      """Test that episodes are terminated upon reaching `time_limit` steps."""
      task = rl_task.RLTask(
          DummyEnv(),
          initial_trajectories=3,
          max_steps=10,
          time_limit=10,
      )
      trajectories = task.trajectories[
          0
      ]  # Get trajectories from epoch 0.
      self.assertLen(trajectories, 3)
      for trajectory in trajectories:
          self.assertTrue(trajectory.done)
          # max_steps + 1 (the initial observation doesn't count).
          self.assertLen(trajectory, 11)
  
imports: import os
  from absl.testing import absltest
  import gym
  import numpy
  from trax import test_utils
  from trax.rl import task
label_desc: Use image node_id 15 for calling the TaskTest obj's underlying member method code with example usage: obj.test_time_limit_terminates_epsiodes() without return types