code: def random_example(dim=4, min_id=1, max_id=8):
      if random.random() < 0.5:
          return random_vector(dim)
      else:
          return random.randint(min_id, max_id)
  
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 2 for calling a global function with example usage: random_example(dim, min_id, max_id) and returns: random_vector, random