def METHOD_NAME(package):
    res = ''
    if '.' in package:
        package, res = package.split('.', 1)
    s = find_spec(package)
    if s.submodule_search_locations:
        p = Path(s.submodule_search_locations[0])
    else:
        p = Path(package)
    return p / res.replace('.', '/')