@classmethod<EOL><INDENT>def get_failed_enrollment_message(cls, users, enrolled_in):<DEDENT>
failed_emails = [user.email for user in users]<EOL>return (<EOL>'<STR_LIT:error>',<EOL>_(<EOL>'<STR_LIT>'<EOL>).format(<EOL>enrolled_in=enrolled_in,<EOL>user_list='<STR_LIT:U+002CU+0020>'.join(failed_emails),<EOL>)<EOL>)<EOL>
Create message for the users who were not able to be enrolled in a course or program.

Args:
    users: An iterable of users who were not successfully enrolled
    enrolled_in (str): A string identifier for the course or program with which enrollment was attempted

Returns:
tuple: A 2-tuple containing a message type and message text