import re


def pid_valid(passport):
    """ Check that pid is valid

    pid (Passport ID) - a nine-digit number, including leading zeroes.

    :param passport: passport
    :return: boolean
    """
    return bool(re.match(r'[\d]{9}$', passport['pid']))