class_docstr: Unit-test mock environment.
  
  Args:
      states: States specification.
      actions: Actions specification.
      min_timesteps: Minimum number of timesteps.
code: def is_valid_actions_function(cls, actions_spec):
      if "type" in actions_spec:
          return lambda actions, states: cls.is_valid_action_function(
              action_spec=actions_spec
          )(actions, "action", states)
  
      else:
          return lambda actions, states: all(
              cls.is_valid_action_function(action_spec=action_spec)(
                  action=actions[name], name=name, states=states
              )
              for name, action_spec in actions_spec.items()
          )
  
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 7 for calling the UnittestEnvironment obj's underlying member method code with example usage: obj.is_valid_actions_function(cls, actions_spec) and returns: function, function