def METHOD_NAME(path):
    if path == apt.APT_METHOD_HTTPS_FILE:
        return not apt_transport_https
    elif path == apt.CA_CERTIFICATES_FILE:
        return not ca_certificates
    elif not path.startswith(tmpdir.strpath):
        raise Exception(
            "os.path.exists call outside of tmpdir: {}".format(path)
        )
    return original_exists(path)