def METHOD_NAME(pkg, target="LocalSystem", store=False, allow_untrusted=False):
    """
    Install a pkg file
    Args:
        pkg (str): The package to install
        target (str): The target in which to install the package to
        store (bool): Should the package be installed as if it was from the
                      store?
        allow_untrusted (bool): Allow the installation of untrusted packages?
    Returns:
        dict: A dictionary containing the results of the installation
    CLI Example:
    .. code-block:: bash
        salt '*' macpackage.install test.pkg
    """
    if "*." not in pkg:
        # If we use wildcards, we cannot use quotes
        pkg = shlex.quote(pkg)
    target = shlex.quote(target)
    cmd = f"installer -pkg {pkg} -target {target}"
    if store:
        cmd += " -store"
    if allow_untrusted:
        cmd += " -allowUntrusted"
    # We can only use wildcards in python_shell which is
    # sent by the macpackage state
    python_shell = False
    if "*." in cmd:
        python_shell = True
    return __salt__["cmd.run_all"](cmd, python_shell=python_shell)