def unpack_model_tar(model_ckpt_path: pathlib.Path) -> pathlib.Path:
    """
    Untar a tar.gz object

    Args:
        model_data_dir (str): a local file system path that points to the `tar.gz` archive
        containing the model ckpts.
    Returns:
        model_dir (str): the directory that contains the uncompress model checkpoint files
    """
    model_dir = model_ckpt_path.parent
    # untar the model
    tar = tarfile.open(str(model_ckpt_path))
    tar.extractall(model_dir)
    tar.close()
    return model_dir

    Untar a tar.gz object

    Args:
        model_data_dir (str): a local file system path that points to the `tar.gz` archive
        containing the model ckpts.
    Returns:
        model_dir (str): the directory that contains the uncompress model checkpoint files
    
benchmarks/transformers/prob_model_text_classification.py