from pathlib import Path


def is_installer(f: Path, file_ext: str = ".pkg", install_prefix: str = "_Install") -> bool:
    """Determines if the specified package is an installer
    :param f (Path): file path
    :param file_ext (str): file extension test
    :param install_prefix (str): install package test"""
    return install_prefix in str(f) and file_ext in str(f)