def _assert_keys_match(keys1, keys2):
  """Ensure the two list of keys matches."""
  if set(keys1) != set(keys2):
    raise ValueError('{} {}'.format(list(keys1), list(keys2)))
def _assert_keys_match ( keys1 , keys2 ) : if set ( keys1 ) != set ( keys2 ) : raise ValueError ( '{} {}' . format ( list ( keys1 ) , list ( keys2 ) ) )
Ensure the two list of keys matches.