code: def test_groups_by_heterogenous_fields():
      response = request_with_validation(
          api=SEARCH_GROUPS_API,
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "vector": [0.0, 0.0, 1.0, 0.0],
              "limit": 10,
              "with_payload": True,
              "group_by": "heterogenousId",
              "group_size": 3,
          },
      )
      assert response.ok
  
      groups = response.json()["result"]["groups"]
  
      group_ids = [g["id"] for g in groups]
  
      # Expected group ids are: ['c', 3, 1, 123, 2, 'string', 'b', 'a']
  
      assert len(groups) == 8
      assert "c" in group_ids
      assert 3 in group_ids
      assert 1 in group_ids
      assert 123 in group_ids
      assert 2 in group_ids
      assert "string" in group_ids
      assert "b" in group_ids
      assert "a" in group_ids
  
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 14 for calling a global function with example usage: test_groups_by_heterogenous_fields() without return types