describe_flag(settings, key) that inspects dict settings. Return "missing" if key is not a key in settings at all. Return "present but falsy" if the key exists but its value is falsy (e.g. 0, "", False, None). Return "present and truthy" otherwise. This distinguishes key existence from truthiness of the value.describe_flag({'debug': False}, 'debug')'present but falsy'
debug is a key, but False is falsy.
describe_flag({}, 'debug')'missing'
debug is not a key at all.
describe_flag({'debug': True}, 'debug')'present and truthy'
debug is a key with a truthy value.
Check `key not in settings` first.
Then check `bool(settings[key])`.