code: def test_batch_update_payload():
      # Batch on multiple points
      response = request_with_validation(
          api="/collections/{collection_name}/points/batch",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "operations": [
                  {
                      "overwrite_payload": {
                          "payload": {
                              "test_payload": "1",
                          },
                          "points": [1],
                      },
                  },
                  {
                      "overwrite_payload": {
                          "payload": {
                              "test_payload": "2",
                          },
                          "points": [2],
                      },
                  },
              ]
          },
      )
      assert response.ok
  
      assert_points(
          [
              {
                  "id": 1,
                  "payload": {
                      "test_payload": "1",
                  },
                  "vector": None,
              },
              {
                  "id": 2,
                  "payload": {
                      "test_payload": "2",
                  },
                  "vector": None,
              },
          ]
      )
  
      # Clear multiple
      response = request_with_validation(
          api="/collections/{collection_name}/points/batch",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "operations": [
                  {
                      "clear_payload": {
                          "points": [1],
                      },
                  },
                  {
                      "clear_payload": {
                          "points": [2],
                      },
                  },
              ]
          },
          query_params={"wait": "true"},
      )
      assert response.ok
  
      assert_points(
          [
              {
                  "id": 1,
                  "payload": {},
              },
              {
                  "id": 2,
                  "payload": {},
              },
          ]
      )
  
      # Batch update on the same point
      response = request_with_validation(
          api="/collections/{collection_name}/points/batch",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "operations": [
                  {
                      "overwrite_payload": {
                          "payload": {
                              "test_payload_1": "1",
                          },
                          "points": [1],
                      },
                  },
                  {
                      "set_payload": {
                          "payload": {
                              "test_payload_2": "2",
                              "test_payload_3": "3",
                          },
                          "points": [1],
                      }
                  },
                  {
                      "delete_payload": {
                          "keys": [
                              "test_payload_2",
                          ],
                          "points": [1],
                      },
                  },
              ]
          },
          query_params={"wait": "true"},
      )
      assert response.ok
  
      assert_points(
          [
              {
                  "id": 1,
                  "payload": {
                      "test_payload_1": "1",
                      "test_payload_3": "3",
                  },
              },
          ]
      )
  
imports: import pytest
  from .helpers.helpers import request_with_validation
  from .helpers.collection_setup import basic_collection_setup, drop_collection
  from operator import itemgetter
label_desc: Use image node_id 4 for calling a global function with example usage: test_batch_update_payload() without return types