<s> """<STR_LIT>""" <EOL> from st2common . models . db . stormbase import UIDFieldMixin <EOL> __all__ = [ <EOL> '<STR_LIT>' <EOL> ] <EOL> def parse_uid ( uid ) : <EOL> """<STR_LIT>""" <EOL> if UIDFieldMixin . UID_SEPARATOR not in uid : <EOL> raise ValueError ( '<STR_LIT>' % ( uid ) ) <EOL> parsed = uid . split ( UIDFieldMixin . UID_SEPARATOR ) <EOL> if len ( parsed ) < <NUM_LIT:2> : <EOL> raise ValueError ( '<STR_LIT>' % ( uid ) ) <EOL> resource_type = parsed [ <NUM_LIT:0> ] <EOL> uid_remainder = parsed [ <NUM_LIT:1> : ] <EOL> return ( resource_type , uid_remainder ) </s>
