import genericpath


def common_prefix(s1, s2):
    """
    Return the common leading subsequence of two sequences.
    """
    if not s1 or not s2:
        return None
    common = genericpath.commonprefix((s1, s2,))
    if common:
        return common
    else:
        return None