def METHOD_NAME(self) -> t.Tuple[Path, str]:
    name = self.uri.name
    version = self.uri.version
    rootdir = self.project_dir / self.uri_type / name
    if version:
        _p, _v, _ok = guess_real_path(
            rootdir / version[:VERSION_PREFIX_CNT],
            version,
        )
        if not _ok:
            _manifest = StandaloneTag.get_manifest_by_dir(rootdir)
            _tag_version = _manifest.get("tags", {}).get(version, "")
            if _tag_version:
                _p, _v, _ok = guess_real_path(
                    rootdir / _tag_version[:VERSION_PREFIX_CNT], _tag_version
                )
        if _v.endswith(self.bundle_type):
            _v = _v.split(self.bundle_type)[0]
        self.uri.version = _v
        return _p, _v
    else:
        return self.project_dir / self.uri_type / name, name