class_docstr: Unit-test mock environment.
  
  Args:
      states: States specification.
      actions: Actions specification.
      min_timesteps: Minimum number of timesteps.
code: def __init__(self, states, actions, min_timesteps):
      super().__init__()
  
      self.states_spec = OrderedDict(
          (name, states[name]) for name in sorted(states)
      )
      self.actions_spec = OrderedDict(
          (name, actions[name]) for name in sorted(actions)
      )
      self.min_timesteps = min_timesteps
  
      self.random_states = self.__class__.random_states_function(
          states_spec=self.states_spec, actions_spec=self.actions_spec
      )
      self.is_valid_actions = self.__class__.is_valid_actions_function(
          actions_spec=self.actions_spec
      )
  
file_path: tensorforce/test/unittest_environment.py
imports: from collections import OrderedDict
  from random import random
  import numpy
  from tensorforce import Environment, TensorforceError, util
label_desc: Use image node_id 1 to create a new UnittestEnvironment object from inherited base classes: Environment with example: obj = UnittestEnvironment(states, actions, min_timesteps)