def METHOD_NAME(self: PythonPythonMapper):
    try:
        slug = self.summary
    except AttributeError:
        return os.path.join(*self.name.split("."))
    slug = unidecode.unidecode(slug)
    slug = slug.lower()
    slug = re.sub(r"[^\w\./]+", "-", slug).strip("-")
    slug_split = slug.split("/")
    if slug == "" or len(slug_split) == 1 or self.type == "package":
        return os.path.join("api", *self.name.split("."))
    return os.path.join(*slug_split)