code: def validate_words(word_list):
      '''
      Checks for each edited word in word_list if that word is a valid english word.abs
      Returns all validated words as a set instance.
      '''
      if word_list is None:
          return {}
      elif isinstance(word_list, list):
          if not word_list:
              return {}
          else:
              return set(word for word in word_list if word in WORD_DISTRIBUTION)
      else:
          raise InputError("list variable not passed as argument to validate_words"f validate_words(word_list):
      '''
      Checks for each edited word in word_list if that word is a valid english word.abs
      Returns all validated words as a set instance.
      '''
      if word_list is None:
          return {}
      elif isinstance(word_list, list):
          if not word_list:
              return {}
          else:
              return set(word for word in word_list if word in WORD_DISTRIBUTION)
      else:
          raise InputError("list variable not passed as argument to validate_words")
docs: Checks for each edited word in word_list if that word is a valid english word.abs
      Returns all validated words as a set instance.