def validate_hash(self, password, stored_hash):
        return bcrypt.hashpw(password, stored_hash) == stored_hash
Helper function to get and/or verify the data sizes and time scales
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/auth.py/AuthHandler.validate_hash--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/connectivity/spectral.py/_get_and_verify_data_sizes