def METHOD_NAME(self):
    """Extra context provided to the serializer class."""
    context = super().METHOD_NAME()
    admin_role_permission = permissions.IsTokenAdmin()
    instructor_role_permission = permissions.IsTokenInstructor()
    context["is_admin"] = admin_role_permission.has_permission(
        request=self.request, view=None
    ) or instructor_role_permission.has_permission(request=self.request, view=None)
    return context