def METHOD_NAME(contents):
    """
    Return the license header at the top of the `contents` string.
    It returns an empty string if no license header is found.
    """
    match = _COPYRIGHT_PATTERN.match(contents)
    return match[0] if match else ""