code: def test_recommend():
      response = request_with_validation(
          api=RECO_GROUPS_API,
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "positive": [5, 10, 15],
              "negative": [6, 11, 16],
              "limit": 10,
              "with_payload": True,
              "group_by": "docId",
              "group_size": 3,
          },
      )
      assert response.ok
  
      groups = response.json()["result"]["groups"]
  
      assert len(groups) == 10
      for g in groups:
          assert len(g["hits"]) == 3
          for h in g["hits"]:
              assert h["payload"]["docId"] == g["id"]
  
imports: import json
  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_recommend() without return types