def METHOD_NAME(self):
    """ This is used for the goto functions. """
    if self._path is None:
        return ''  # no path -> empty name
    else:
        sep = (re.escape(os.path.sep),) * 2
        r = re.search(r'([^%s]*?)(%s__init__)?(\.py|\.so)?$' % sep, self._path)
        # Remove PEP 3149 names
        return re.sub(r'\.[a-z]+-\d{2}[mud]{0,3}$', '', r.group(1))