code: def create_payload_index(
      peer_api_uri, collection_name, field_name, field_schema
  ):
      r = requests.put(
          f"{peer_api_uri}/collections/{COLLECTION_NAME}/index",
          json={
              "field_name": field_name,
              "field_schema": field_schema,
          },
      )
      assert_http_ok(r)
      return r.json()["result"]
  
file_path: qdrant/tests/consensus_tests/test_snapshot_recovery.py
imports: import pathlib
  from .fixtures import create_collection, upsert_random_points, random_dense_vector, search, random_sparse_vector
  from .utils import *
label_desc: Use image node_id 2 for calling a global function with example usage: create_payload_index(peer_api_uri, collection_name, field_name, field_schema) and returns: r