def _ValidateOneContact(self, user_id, identities_properties, contact_source, name, given_name, family_name, rank=None):
    contact_dict = Contact.CreateContactDict(user_id,
                                             identities_properties,
                                             util._TEST_TIME,
                                             contact_source,
                                             name=name,
                                             given_name=given_name,
                                             family_name=family_name,
                                             rank=rank)

    # Find any old contact with same identity.
    predicate = lambda contact: contact_dict['contact_id'] == contact.contact_id
    old_contacts = self._validator.QueryModelObjects(Contact, predicate=predicate)
    if len(old_contacts) == 0 or old_contacts[0].IsRemoved():
      if len(old_contacts) > 0:
        # Validate that old contact has been deleted.
        self._validator.ValidateDeleteDBObject(Contact, old_contacts[0].GetKey())
      # Validate that new create contact has been created.
      contact_dict =  Contact.CreateContactDict(**contact_dict)
      return self._validator.ValidateCreateDBObject(Contact, **contact_dict)

    return old_contacts[0]
Constructs an access token guess id value, used to limit the number of incorrect guesses
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/fetch_contacts_test.py/FetchContactsTestCase._ValidateOneContact--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/identity.py/Identity._ConstructAccessTokenGuessId