yawning_titan.envs.generic.helpers.environment_input_validation.check_type#

yawning_titan.envs.generic.helpers.environment_input_validation.check_type(data, name, types)[source]#

Check data item_types contained within a dictionary is one of a list of item_types.

Parameters:
  • data – The dictionary

  • name – The name of the key of the item to check

  • types – A list of item_types that the item must belong to