def METHOD_NAME(module="pyrolite", subfolder=None):
    """
    Returns the path of a module data folder.
    Parameters
    -----------
    subfolder : :class:`str`
        Subfolder within the module data folder.
    Returns
    -------
    :class:`pathlib.Path`
    """
    pth = Path(importlib.util.find_spec(module).origin).parent / "data"
    if subfolder:
        pth /= subfolder
    return pth