import pathlib


def path(args) -> pathlib.Path:
    """
    Return path where model will be placed upon `.zip` unpacking.

    Parameters
    ----------
    args : dict-like
        User provided arguments parsed by argparse.ArgumentParser instance.

    Returns
    -------
    pathlib.Path

    """
    if args.directory is not None:
        return pathlib.Path(args.directory) / args.source
    return pathlib.Path(args.source)