def METHOD_NAME(self):
    """
    Call CreateComputeEnvironment with nonexistent instance type and return error message.
    The returned error message is expected to have a list of supported instance types.
    """
    try:
        self._call_create_compute_environment_with_bad_instance_type()
    except ClientError as e:
        # This is the expected behavior
        return e.response.get("Error").get("Message")
    except EndpointConnectionError:
        raise BatchErrorMessageParsingException(
            f"Could not connect to the batch endpoint for region {get_region()}. Probably Batch is not available."
        )
    else:
        # TODO: need to delete the compute environment?
        raise BatchErrorMessageParsingException(
            "Attempting to create a Batch ComputeEnvironment using a nonexistent instance type did not result "
            "in an error as expected."
        )