def _ValidateSimulatorType(device_type):
    'Checks if the simulator type is valid.\n\n  Args:\n    device_type: string, device type of the new simulator. The value corresponds\n      to the output of `xcrun simctl list devicetypes`. E.g., iPhone 6, iPad\n      Air, etc.\n\n  Raises:\n    ios_errors.IllegalArgumentError: when the given simulator device type is\n    invalid.\n  '
    supported_sim_device_types = GetSupportedSimDeviceTypes()
    if (device_type not in supported_sim_device_types):
        raise ios_errors.IllegalArgumentError(('The simulator device type %s is not supported. Supported simulator device types are %s.' % (device_type, supported_sim_device_types)))
Checks if the simulator type is valid.

Args:
  device_type: string, device type of the new simulator. The value corresponds
    to the output of `xcrun simctl list devicetypes`. E.g., iPhone 6, iPad
    Air, etc.

Raises:
  ios_errors.IllegalArgumentError: when the given simulator device type is
  invalid.
def _ValidateSimulatorType(device_type):
    'Checks if the simulator type is valid.\n\n  Args:\n    device_type: string, device type of the new simulator. The value corresponds\n      to the output of `xcrun simctl list devicetypes`. E.g., iPhone 6, iPad\n      Air, etc.\n\n  Raises:\n    ios_errors.IllegalArgumentError: when the given simulator device type is\n    invalid.\n  '
    supported_sim_device_types = GetSupportedSimDeviceTypes()
    if (device_type not in supported_sim_device_types):
        raise ios_errors.IllegalArgumentError(('The simulator device type %s is not supported. Supported simulator device types are %s.' % (device_type, supported_sim_device_types)))