code: def keep_only_fields(self):
          
          for tag in self.record.keys():
              if tag not in self.fields_list:
                  record_delete_fields(self.record, tag)
docs: Keep only fields listed in field_list.