1 def calculate_config_hash(config): 2 """ 3 Calculate a hash for the given configuration. 4 """ 5 hash_value = 0 6 for key, value in config.items(): 7 hash_value += hash((key, value)) 8 return hash_value