def METHOD_NAME(all_local_plans):
    nonlocal global_metatadata
    assert planner is not None
    all_local_plans, global_metatadata = planner.create_global_plan(
        all_local_plans
    )
    all_local_plans = storage_writer.prepare_global_plan(all_local_plans)
    return all_local_plans