Get the path for persistent storage of a module.
    
    This method creates the queried path if not existing.
    
    Args:
        module_id (str): Module ID

    Returns:
        The data path of indicated module.

def get_data_path(module_id: str) -> Path:
    """
    Get the path for persistent storage of a module.
    
    This method creates the queried path if not existing.
    
    Args:
        module_id (str): Module ID

    Returns:
        The data path of indicated module.
    """
    profile = coordinator.profile
    data_path = get_base_path() / 'profiles' / profile / module_id
    if not data_path.exists():
        data_path.mkdir(parents=True)
    return data_path