code: def getenv_int(key, default=0):
      
      try:
          return int(os.environ.get(key, str(default)))
      except ValueError:
          return default
docs: Get an integer-valued environment variable `key`, if it exists and parses
      as an integer, otherwise return `default`.