def _key_id_or_name_n(key, index):
 if (not key):
  return None
 path = key.to_path()
 if (not path):
  return None
 path_index = ((index * 2) + 1)
 return path[path_index]

def _key_id_or_name_n ( key , index ) : if ( not key ) : return None path = key . to_path ( ) if ( not path ) : return None path_index = ( ( index * 2 ) + 1 ) return path [ path_index ]
internal helper function for key id and name transforms .