human
I wrote the below code

    block_classes = (CourseEndDate, CourseStartDate, TodaysDate, VerificationDeadlineDate, VerifiedUpgradeDeadlineDate)
    blocks = (cls(course, user) for cls in block_classes)
    def block_key_fn(block):
        "\n                                If    the    block's    date    is    None,    return    the    maximum    datetime    in    order\n                                to    force    it    to    the    end    of    the    list    of    displayed    blocks.\n                                "
        if (block.date is None):
            return datetime.max.replace(tzinfo=pytz.UTC)
        return block.date
    return sorted((b for b in blocks if b.is_enabled), key=block_key_fn)

What's a good function header?

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

def get_course_date_blocks(course, user):