def METHOD_NAME():
    # NOTE: We need to specify DEBIAN_FRONTEND and PATH otherwise tests might fail depending on the
    # environment where they run
    env = {
        "DEBIAN_FRONTEND": "noninteractive",
        "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    }
    cmd = "apt remove -y scalyr-agent-2"
    exit_code, stdout, stderr = _run_command(cmd, shell=True, env=env)
    if exit_code != 0:
        raise PackageInstallationError(stderr=stderr, stdout=stdout)
    return stdout, stderr