def METHOD_NAME(buildpack_dir, destination_path, cache_path):
    if appdynamics_used():
        util.resolve_dependency(
            "appdynamics.agent",
            # destination_path - DOT_LOCAL_LOCATION
            destination_path + "/appdynamics/",
            buildpack_dir=buildpack_dir,
            cache_dir=cache_path,
        )
        if machine_agent_enabled():
            util.resolve_dependency(
                "appdynamics.machine-agent",
                destination_path + "/appdynamics/machineagent/",
                buildpack_dir=buildpack_dir,
                cache_dir=cache_path,
            )