def _PropertyKeyToString(key, default_property):
 key_path = key.to_path()
 if ((len(key_path) == 2) and (key_path[0] == '__kind__') and isinstance(key_path[1], basestring)):
  return (key_path[1], default_property)
 if ((len(key_path) == 4) and (key_path[0] == '__kind__') and isinstance(key_path[1], basestring) and (key_path[2] == '__property__') and isinstance(key_path[3], basestring)):
  return (key_path[1], key_path[3])
 Check(False, 'invalid Key for __property__ table')

def _PropertyKeyToString ( key , default_property ) : key_path = key . to_path ( ) if ( ( len ( key_path ) == 2 ) and ( key_path [ 0 ] == '__kind__' ) and isinstance ( key_path [ 1 ] , basestring ) ) : return ( key_path [ 1 ] , default_property ) if ( ( len ( key_path ) == 4 ) and ( key_path [ 0 ] == '__kind__' ) and isinstance ( key_path [ 1 ] , basestring ) and ( key_path [ 2 ] == '__property__' ) and isinstance ( key_path [ 3 ] , basestring ) ) : return ( key_path [ 1 ] , key_path [ 3 ] ) Check ( False , 'invalid Key for __property__ table' )
extract property name from __property__ key .