docstr: Query a vector with a complex payload
code: def test_query_vector_with_varchar_filter(
      self, filter_expr, include_output_fields
  ):
      """
      Query a vector with a complex payload
      """
      name = gen_collection_name()
      self.name = name
      nb = 200
      dim = 128
      limit = 100
      schema_payload, data = self.init_collection(name, dim=dim, nb=nb)
      names = []
      for item in data:
          names.append(item.get("name"))
      names.sort()
      logger.info(f"names: {names}")
      mid = len(names) // 2
      prefix = names[mid][0:2]
      # search data
      output_fields = get_common_fields_by_data(data)
      filter_expr = filter_expr.replace("placeholder", prefix)
      logger.info(f"filter_expr: {filter_expr}")
      payload = {
          "collectionName": name,
          "outputFields": output_fields,
          "filter": filter_expr,
          "limit": limit,
          "offset": 0,
      }
      if not include_output_fields:
          payload.pop("outputFields")
      rsp = self.vector_client.vector_query(payload)
      assert rsp["code"] == 200
      res = rsp["data"]
      logger.info(f"res: {len(res)}")
      assert len(res) <= limit
      for item in res:
          name = item.get("name")
          logger.info(f"name: {name}")
          if ">" in filter_expr:
              assert name > prefix
          if "like" in filter_expr:
              assert name.startswith(prefix)
  
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 2 for calling the TestQueryVector obj's underlying member method code with example usage: obj.test_query_vector_with_varchar_filter(filter_expr, include_output_fields) without return types