import re


def is_project(collection):
    """
    Check if a given collection matches the format of path to a project
    collection.
    """
    return re.search(
        r'projects/([a-f0-9]{2})/\1[a-f0-9]{6}-([a-f0-9]{4}-){3}[a-f0-9]{12}$',
        collection.path,
    )