def key_id_or_name_as_string_n(index):
 def transform_function(key):
  id_or_name = _key_id_or_name_n(key, index)
  if (not id_or_name):
   return u''
  return unicode(id_or_name)
 return transform_function

def key_id_or_name_as_string_n ( index ) : def transform_function ( key ) : id_or_name = _key_id_or_name_n ( key , index ) if ( not id_or_name ) : return u'' return unicode ( id_or_name ) return transform_function
pull out the nth key id or name from a key which has parents .