def _ValidateContacts(contact_dicts):
  """For each contact in "contact_dicts" that has an identity attribute, validates the identity
  key format. The "contact_dicts" have the FOLLOWER_CONTACTS_METADATA format defined in
  json_schema.py.
  """
  for contact in contact_dicts:
    if contact in 'identity':
      Identity.ValidateKey(contact['identity'])
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/service.py/_ValidateContacts/swapped operands of `in`