code: def test_without_positives():
      def req_with_positives(positive, strategy=None):
          if strategy is None:
              strat_dict = {}
          else:
              strat_dict = {"strategy": strategy}
  
          return request_with_validation(
              api="/collections/{collection_name}/points/recommend",
              method="POST",
              path_params={"collection_name": collection_name},
              body={
                  "positive": positive,
                  **strat_dict,
                  "limit": 2,
              },
          )
  
      # Assert this is valid
      response = req_with_positives([1, 2])
      assert response.ok
  
      # But all these are not
      response = req_with_positives([])
      assert response.status_code == 400
  
      response = req_with_positives([], "average_vector")
      assert response.status_code == 400
  
      # Also no negative and no positive is invalid with best_score
      response = req_with_positives([], "best_score")
      assert response.status_code == 400
  
file_path: qdrant/openapi/tests/openapi_integration/test_recommend.py
imports: 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 4 for calling a global function with example usage: test_without_positives() and returns: request_with_validation