def _ValidateContacts(contact_dicts):
 for contact in contact_dicts:
  if ('identity' in contact):
   Identity.ValidateKey(contact['identity'])

def _ValidateContacts ( contact_dicts ) : for contact in contact_dicts : if ( 'identity' in contact ) : Identity . ValidateKey ( contact [ 'identity' ] )
for each contact in "contact_dicts" that has an identity attribute .