code: def _reverse_lookup(dictionary, value):
      '''
      Lookup the key in a dictionary by it's value. Will return the first match.
  
      :param dict dictionary: The dictionary to search
  
      :param str value: The value to search for.
  
      :return: Returns the first key to match the value
      :rtype: str
      '''
      value_index = -1
      for idx, dict_value in enumerate(dictionary.values()):
          if type(dict_value) == list:
              if value in dict_value:
                  value_index = idx
                  break
          elif value == dict_value:
              value_index = idx
              break
  
      return list(dictionary)[value_indexf _reverse_lookup(dictionary, value):
      '''
      Lookup the key in a dictionary by it's value. Will return the first match.
  
      :param dict dictionary: The dictionary to search
  
      :param str value: The value to search for.
  
      :return: Returns the first key to match the value
      :rtype: str
      '''
      value_index = -1
      for idx, dict_value in enumerate(dictionary.values()):
          if type(dict_value) == list:
              if value in dict_value:
                  value_index = idx
                  break
          elif value == dict_value:
              value_index = idx
              break
  
      return list(dictionary)[value_index]
docs: Lookup the key in a dictionary by it's value. Will return the first match.
  
      :param dict dictionary: The dictionary to search
  
      :param str value: The value to search for.
  
      :return: Returns the first key to match the value
      :rtype: str