docstr: Method:
  1. create a collection with partition key off in field schema but enable in collection schema
  2. verify the collection created successfully
docstr_tok: ["Method",":","1.","create","a","collection","with","partition","key","off","in","field","schema","but","enable","in","collection","schema","2.","verify","the","collection","created","successfully"]
code: def test_partition_key_off_in_field_but_enable_in_schema(self):
      """
      Method:
      1. create a collection with partition key off in field schema but enable in collection schema
      2. verify the collection created successfully
      """
      self._connect()
      pk_field = cf.gen_int64_field(name="pk", is_primary=True)
      int64_field = cf.gen_int64_field(is_partition_key=False)
      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=int64_field.name,
          auto_id=True,
      )
  
      err_msg = "fail to create collection"
      c_name = cf.gen_unique_str("par_key")
      collection_w, _ = self.collection_wrap.init_collection(
          name=c_name, schema=schema, num_partitions=10
      )
      assert len(collection_w.partitions) == 10
  
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 3 for calling the TestPartitionKeyParams obj's underlying member method code with example usage: obj.test_partition_key_off_in_field_but_enable_in_schema() without return types