def unenroll_user_from_course(self, username, course_id):
enrollment = self.get_course_enrollment(username, course_id)<EOL>if enrollment and enrollment['<STR_LIT>']:<EOL><INDENT>response = self.client.enrollment.post({<EOL>'<STR_LIT:user>': username,<EOL>'<STR_LIT>': {'<STR_LIT>': course_id},<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': enrollment['<STR_LIT>']<EOL>})<EOL>return not response['<STR_LIT>']<EOL><DEDENT>return False<EOL>
Call the enrollment API to unenroll the user in the course specified by course_id.
Args:
    username (str): The username by which the user goes on the OpenEdx platform
    course_id (str): The string value of the course's unique identifier
Returns:
    bool: Whether the unenrollment succeeded