code: def test_delete_vector_default(
      self, id_field_type, include_invalid_id
  ):
      name = gen_collection_name()
      self.name = name
      nb = 200
      dim = 128
      schema_payload, data = self.init_collection(name, dim=dim, nb=nb)
      time.sleep(1)
      output_fields = get_common_fields_by_data(data)
      uids = []
      for item in data:
          uids.append(item.get("uid"))
      payload = {
          "collectionName": name,
          "outputFields": output_fields,
          "filter": f"uid in {uids}",
      }
      rsp = self.vector_client.vector_query(payload)
      assert rsp["code"] == 200
      res = rsp["data"]
      logger.info(f"res: {len(res)}")
      ids = []
      for r in res:
          ids.append(r["id"])
      logger.info(f"ids: {len(ids)}")
      id_to_get = None
      if id_field_type == "list":
          id_to_get = ids
      if id_field_type == "one":
          id_to_get = ids[0]
      if include_invalid_id:
          if isinstance(id_to_get, list):
              id_to_get.append(0)
          else:
              id_to_get = 0
      if isinstance(id_to_get, list):
          if len(id_to_get) >= 100:
              id_to_get = id_to_get[-100:]
      # delete by id list
      payload = {"collectionName": name, "id": id_to_get}
      rsp = self.vector_client.vector_delete(payload)
      assert rsp["code"] == 200
      logger.info(f"delete res: {rsp}")
  
      # verify data deleted
      if not isinstance(id_to_get, list):
          id_to_get = [id_to_get]
      payload = {
          "collectionName": name,
          "filter": f"id in {id_to_get}",
      }
      time.sleep(5)
      rsp = self.vector_client.vector_query(payload)
      assert rsp["code"] == 200
      assert len(rsp["data"]) == 0
  
imports: import datetime
  import random
  import time
  from sklearn import preprocessing
  import numpy
  import sys
  import json
  import time
  from utils import constant
  from utils.utils import gen_collection_name
  from utils.util_log import test_log
  import pytest
  from api.milvus import VectorClient
  from base.testbase import TestBase
  from utils.utils import get_data_by_fields, get_data_by_payload, get_common_fields_by_data
label_desc: Use image node_id 1 for calling the TestDeleteVector obj's underlying member method code with example usage: obj.test_delete_vector_default(id_field_type, include_invalid_id) without return types