'Login with an instructor account.
Args:
course_access_roles (str[]): List of course access roles that should be assigned to the user.
Returns
username (str)
user_id (int)'

def log_in_as_instructor(self, course_access_roles=None):

    course_access_roles = (course_access_roles or [])
    auto_auth_page = AutoAuthPage(self.browser, course_id=self.course_id, staff=True, course_access_roles=course_access_roles)
    auto_auth_page.visit()
    user_info = auto_auth_page.user_info
    return (user_info['username'], user_info['user_id'])
