human
I wrote the below code

    def course_filter(course):
        '\n                                Filter    out    unusable    and    inaccessible    courses\n                                '
        if isinstance(course, ErrorDescriptor):
            return False
        if isinstance(course.id, CCXLocator):
            return False
        if (course.location.course == 'templates'):
            return False
        return has_studio_read_access(request.user, course.id)
    courses = six.moves.filter(course_filter, modulestore().get_courses())
    in_process_course_actions = get_in_process_course_actions(request)
    return (courses, in_process_course_actions)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def _accessible_courses_iter(request):