def validate_birth_year(passport: dict) -> bool:
    """
    Return True if the birthyear in a password is between 1920 and 2002

    DOCTEST
    >>> validate_birth_year(passport={"ecl": "gry", "byr": "1937"})
    True
    >>> validate_birth_year(passport={"ecl": "gry", "byr": "1919"})
    False
    >>> validate_birth_year(passport={"ecl": "gry", "byr": "2003"})
    False
    >>> validate_birth_year(passport={"ecl": "gry"})
    False
    """

    birth_year = passport.get("byr")
    if not birth_year:
        return False

    if 1920 <= int(birth_year) <= 2002:
        return True
    return False