import re


def autolab_assignment_name(filename):
    """Extract the autolab assessment name for an autolab csv grade
    file name.

    """
    m = re.search("(.*)_(.*)_[0-9]{12}.csv", filename)
    if m:
        return m.group(2)
    return None