code: async def _check_resolver_ans(
              self, dns_answer_list, record_name,
              record_data_list, record_ttl, record_type_code):
          
          type_filtered_list = [
              ans for ans in dns_answer_list if ans.qtype == record_type_code
          ]
  
          # check to see that type_filtered_lst has
          # the same number of records as record_data_list
          if len(type_filtered_list) != len(record_data_list):
              return False
  
          # check each record data is equal to the given data
          for rec in type_filtered_list:
              conditions = [rec.name == record_name,
                            rec.ttl == record_ttl,
                            rec.data in record_data_list]
  
              # if ans record data is not equal
              # to the given data return False
              if not all(conditions):
                  return False
  
          return True
docs: Check if resolver answer is equal to record data.
  
          Args:
              dns_answer_list (list): DNS answer list contains record objects.
              record_name (str): Record name.
              record_data_list (list): List of data values for the record.
              record_ttl (int): Record time-to-live info.
              record_type_code (int): Record type code.
  
          Returns:
              boolean indicating if DNS answer data is equal to record data.