def xpath(self,id):
        """Process an XPATH command (optional server extension) Arguments:
        - id: Message id of article
        Returns:
        resp: server response if successful
        path: directory path to article"""

        resp = self.shortcmd("XPATH " + id)
        if resp[:3] != '223':
            raise NNTPReplyError(resp)
        try:
            [resp_num, path] = resp.split()
        except __HOLE__:
            raise NNTPReplyError(resp)
        else:
            return resp, path
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/nntplib.py/NNTP.xpath