(
    sensors: typing.List[sensor.Sensor])
Convert a list of sensors to the corresponding gym space.

  Args:
    sensors: a list of the current sensors

  Returns:
    space: the converted gym space

  Raises:
    UnsupportedConversionError: raises when the function cannot convert the
      given list of sensors.
Convert a list of sensors to the corresponding gym space.
Convert a list of sensors to the corresponding gym space .
def convert_sensors_to_gym_space(
    sensors: typing.List[sensor.Sensor]) -> gym.Space:
  """Convert a list of sensors to the corresponding gym space.

  Args:
    sensors: a list of the current sensors

  Returns:
    space: the converted gym space

  Raises:
    UnsupportedConversionError: raises when the function cannot convert the
      given list of sensors.
  """

  if all([
      isinstance(s, sensor.BoxSpaceSensor) and s.get_dimension() == 1
      for s in sensors
  ]):
    return convert_1d_box_sensors_to_gym_space(sensors)
  raise UnsupportedConversionError('sensors = ' + str(sensors))
def convert_sensors_to_gym_space ( sensors : typing . List [ sensor . Sensor ] ) -> gym . Space : if all ( [ isinstance ( s , sensor . BoxSpaceSensor ) and s . get_dimension ( ) == 1 for s in sensors ] ) : return convert_1d_box_sensors_to_gym_space ( sensors ) raise UnsupportedConversionError ( 'sensors = ' + str ( sensors ) )