def METHOD_NAME(client, module):
    backup_plan_list = []
    backup_plan_names = module.params.get("backup_plan_names")
    for name in backup_plan_names:
        backup_plan_list.extend(get_plan_details(module, client, name))
    module.exit_json(**{"backup_plans": backup_plan_list})