docs: def append_priority_rule(self, domain=None, category=None, 
                               sponsored_source=None, has_field=None, 
                               query_params_match=None, query_person_match=None):
          """Append a new priority rule for the records returned in the response.
          
          IMPORTANT: This method can be called multiple times per request for 
          adding multiple priority rules, each call can be with only one argument
          and the order of the calls matter (the first rule added is the highest 
          priority, the second is second priority etc).
          For example:
          
          >>> from osrframework.thirdparties.pipl_com.lib.search import SearchAPIRequest
          >>> from osrframework.thirdparties.pipl_com.lib import Phone
          >>> request = SearchAPIRequest('samplekey', username='eric123')
          >>> request.append_priority_rule(domain='linkedin')
          >>> request.append_priority_rule(has_field=Phone)
          
          In the response to the above request records from LinkedIn will be 
          returned before records that aren't from LinkedIn and records with 
          phone will be returned before records without phone. 
          
          Please note that in case there are too many results for the query,
          adding priority rules to the request does not only affect the order 
          of the records but can significantly improve the number of useful 
          results; when you define which records interest you, you'll get records
          that would have otherwise be cut-off by the limit on the number
          of records per query.  
  
          Args:
          
          domain -- str, for example "linkedin.com", "linkedin" is also possible 
                    and it'll match "linkedin.*".
          category -- str, any one of the categories defined in
                      osrframework.thirdparties.pipl_com.lib.source.Source.categories.
          sponsored_source -- bool, True will bring the records that 
                              come from a sponsored source first and False 
                              will bring the non-sponsored records first.
          has_fields -- A field class from osrframework.thirdparties.pipl_com.lib.fields.
                        For example: has_field=Phone means you want to give 
                        a priority to records that has at least one phone.
          query_params_match -- True is the only possible value and it means you 
                                want to give a priority to records that match all 
                                the params you passed in the query.
          query_person_match -- True is the only possible value and it means you
                                want to give a priority to records with higher
                                query_person_match (see the documentation of 
                                record.query_person_match for more details).
                       
          ValueError is raised in any case of an invalid parameter.
          
          """
          params = SearchAPIRequest._prepare_filtering_params(**locals())
          if len(params) > 1:
              raise ValueError('The function should be called with one argument')
          if params:
              self._prioritize_records_by.append(params[0])