def validate_password(password, user=None, password_validators=None):
    """
    Validate whether the password meets all validator requirements.

    If the password is valid, return ``None``.
    If the password is invalid, raise ValidationError with all error messages.
    """
    errors = []
    if password_validators is None:
        password_validators = get_default_password_validators()
    for validator in password_validators:
        try:
            validator.validate(password, user)
        except __HOLE__ as error:
            errors.append(error)
    if errors:
        raise ValidationError(errors)
dataset/ETHPy150Open orcasgit/django-password-validation/password_validation/validation.py/validate_password