def _verify_subnet_association(route_table_desc, subnet_id):
 if route_table_desc:
  if ('associations' in route_table_desc):
   for association in route_table_desc['associations']:
    if (association['subnet_id'] == subnet_id):
     return True
 return False

def _verify_subnet_association ( route_table_desc , subnet_id ) : if route_table_desc : if ( 'associations' in route_table_desc ) : for association in route_table_desc [ 'associations' ] : if ( association [ 'subnet_id' ] == subnet_id ) : return True return False
helper function verify a subnets route table association route_table_desc the description of a route table .