docstr_tok: []
code: def test_collection_create_by_restful_delete_vector_by_sdk(self):
      """ """
      name = gen_collection_name()
      dim = 128
      # insert data by restful
      self.init_collection(name, metric_type="L2", dim=dim)
      time.sleep(5)
      # query data by sdk
      collection = Collection(name=name)
      res = collection.query(
          expr=f"uid in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]",
          output_fields=["*"],
      )
      pk_id_list = []
      for item in res:
          uid = item["uid"]
          pk_id_list.append(item["id"])
      expr = f"id in {pk_id_list}"
      collection.delete(expr)
      time.sleep(5)
      res = collection.query(
          expr=f"uid in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]",
          output_fields=["*"],
      )
      assert len(res) == 0
  
file_path: milvus/tests/restful_client/testcases/test_restful_sdk_mix_use_scenario.py
imports: import random
  import time
  from utils.utils import gen_collection_name
  from utils.util_log import test_log
  import pytest
  from base.testbase import TestBase
  from pymilvus import FieldSchema, CollectionSchema, DataType, Collection
label_desc: Use image node_id 10 for calling the TestRestfulSdkCompatibility obj's underlying member method code with example usage: obj.test_collection_create_by_restful_delete_vector_by_sdk() without return types