code: def rand_sparse_vec(size: int = 1000, density: float = 0.1):
      num_non_zero = int(size * density)
      indices: List[int] = random.sample(range(size), num_non_zero)
      values: List[float] = [
          round(random.random(), 6) for _ in range(num_non_zero)
      ]
      sparse = {
          "indices": indices,
          "values": values,
      }
      return sparse
  
file_path: qdrant/tests/storage-compat/populate_db/populate_db.py
imports: import os
  import random
  import uuid
  from typing import List
  import requests
label_desc: Use image node_id 5 for calling a global function with example usage: rand_sparse_vec(size, density) and returns: sparse