code: def contains_case_insensitive(adict, akey):
      
      for key in adict:
          if key.lower() == akey.lower():
              return True
      return False
docs: Check if key is in adict. The search is case insensitive.