def parse(self, importpath):
<EOL>self.native = False<EOL>self._prefix = "<STR_LIT>"<EOL>self._package = "<STR_LIT>"<EOL>url = re.sub(r'<STR_LIT>', '<STR_LIT>', importpath)<EOL>url = re.sub(r'<STR_LIT>', '<STR_LIT>', url)<EOL>if url.split('<STR_LIT:/>')[<NUM_LIT:0>] in self.native_packages["<STR_LIT>"]:<EOL><INDENT>self.native = True<EOL>return self<EOL><DEDENT>for regex in self.known_ipprefixes:<EOL><INDENT>match = re.search(regex, url)<EOL>if match:<EOL><INDENT>self._prefix = match.group(<NUM_LIT:1>)<EOL>if match.group(<NUM_LIT:3>):<EOL><INDENT>self._package = match.group(<NUM_LIT:3>)<EOL><DEDENT>return self<EOL><DEDENT><DEDENT>raise ValueError("<STR_LIT>" % importpath)<EOL>
Parse import path. Determine if the path is native or starts with known prefix.

        :param importpath:	import path to parse
        :type  importpath:	str
        :return: bool