code: def group_records_by_domain(self):
          
          key_function = lambda record: record.source.domain
          return self.group_records(key_function)
docs: Return the records grouped by the domain they came from.
          
          The return value is a dict, a key in this dict is a domain
          and the value is a list of all the records with this domain.