code: def test_discover_batch():
      targets = []
      contexts = []
      single_results = []
  
      # Singles
      for i in range(10):
          target = random_example()
          targets.append(target)
  
          context = [
              {
                  "positive": random_example(),
                  "negative": random_example(),
              },
              {
                  "positive": random_example(),
                  "negative": random_example(),
              },
          ]
          contexts.append(context)
  
          response = request_with_validation(
              api="/collections/{collection_name}/points/discover",
              method="POST",
              path_params={"collection_name": collection_name},
              body={
                  "target": target,
                  "context": context,
                  "limit": 8,
              },
          )
          assert response.ok, response.json()
  
          single_results.append(response.json()["result"])
  
      # Batch
      searches = [
          {
              "target": target,
              "context": context,
              "limit": 8,
          }
          for target, context in zip(targets, contexts)
      ]
  
      response = request_with_validation(
          api="/collections/{collection_name}/points/discover/batch",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "searches": searches,
          },
      )
  
      batch_results = response.json()["result"]
  
      assert len(single_results) == len(batch_results)
      for single_result, batch_result in zip(
          single_results, batch_results
      ):
          assert single_result == batch_result
  
file_path: qdrant/openapi/tests/openapi_integration/test_discovery.py
imports: import math
  import random
  import pytest
  from .helpers.collection_setup import basic_collection_setup, drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 9 for calling a global function with example usage: test_discover_batch() without return types