def is_id_pair_list(lst):
 (a, b) = list(zip(*lst))
 return is_id_list((a + b))

def is_id_pair_list ( lst ) : ( a , b ) = list ( zip ( * lst ) ) return is_id_list ( ( a + b ) )
returns true if the given list is made up of all pairs .