async def METHOD_NAME(
    mock_sts_client,
    mock_iam_client,  # noqa: F811 # intentional for mocks
    mock_fs,
    mock_execution_message,
    mock_aws_account,
):
    _, templates_base_dir = mock_fs
    config = AWSConfig(accounts=[mock_aws_account])
    iam_template_map = await get_existing_template_map(
        repo_dir=templates_base_dir,
        template_type="AWS::IAM.*",
        template_map=config.template_map,
        nested=True,
    )
    await collect_aws_managed_policies(mock_execution_message, config, iam_template_map)
    output_path = (
        f"{templates_base_dir}/.iambic/fake_execution_id/iam/managed_policy/output.json"
    )
    with open(output_path, "r") as f:
        output_users = json.load(f)
        assert len(output_users) == 1