def _get_a(self, _type):
tmp = self._get_all(_type)<EOL>ret = pick(tmp)<EOL>if len(tmp) != <NUM_LIT:1>:<EOL><INDENT>self.l.warn(("<STR_LIT>" +<EOL>"<STR_LIT>") % (tmp, _type, ret))<EOL><DEDENT>return ret<EOL>
Gets an instance implementing type <_type>