<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_log_level_from_environment(k, default):
 """Gets the log level from the environment variable."""

    return LOG_LEVELS.get(os.environ.get(k)) or int(os.environ.get(k, default))