docstr: Method:
  1. create a collection with partition key on int64 field
  2. insert entities with invalid partition key
  3. verify the error raised
docstr_tok: ["Method",":","1.","create","a","collection","with","partition","key","on","int64","field","2.","insert","entities","with","invalid","partition","key","3.","verify","the","error","raised"]
code: def test_partition_key_insert_invalid_data(self, invalid_data):
      """
      Method:
      1. create a collection with partition key on int64 field
      2. insert entities with invalid partition key
      3. verify the error raised
      """
      self._connect()
      pk_field = cf.gen_string_field(name="pk", is_primary=True)
      int64_field = cf.gen_int64_field()
      string_field = cf.gen_string_field()
      vector_field = cf.gen_float_vec_field()
      schema = cf.gen_collection_schema(
          fields=[pk_field, int64_field, string_field, vector_field],
          partition_key_field=string_field.name,
          auto_id=False,
      )
  
      c_name = cf.gen_unique_str("par_key")
      collection_w, _ = self.collection_wrap.init_collection(
          name=c_name, schema=schema
      )
  
      # insert
      nb = 10
      string_prefix = cf.gen_str_by_length(length=6)
      pk_values = [str(i) for i in range(0, nb)]
      int64_values = [i for i in range(0, nb)]
      string_values = [string_prefix + str(i) for i in range(0, nb)]
      string_values[1] = invalid_data  # inject invalid data
      float_vec_values = gen_vectors(nb, ct.default_dim)
      data = [pk_values, int64_values, string_values, float_vec_values]
  
      err_msg = "expect string input"
      self.collection_wrap.insert(
          data,
          check_task=CheckTasks.err_res,
          check_items={"err_code": 2, "err_msg": err_msg},
      )
  
imports: import pytest
  from base.client_base import TestcaseBase
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
  from utils.util_pymilvus import *
label_desc: Use image node_id 11 for calling the TestPartitionKeyInvalidParams obj's underlying member method code with example usage: obj.test_partition_key_insert_invalid_data(invalid_data) without return types