docstr_tok: []
code: def test_collection_created_by_sdk_describe_by_restful(
      self, dim, enable_dynamic, shard_num
  ):
      """ """
      # 1. create collection by sdk
      name = gen_collection_name()
      default_fields = [
          FieldSchema(
              name="int64", dtype=DataType.INT64, is_primary=True
          ),
          FieldSchema(name="float", dtype=DataType.FLOAT),
          FieldSchema(
              name="varchar", dtype=DataType.VARCHAR, max_length=65535
          ),
          FieldSchema(
              name="float_vector", dtype=DataType.FLOAT_VECTOR, dim=dim
          ),
      ]
      default_schema = CollectionSchema(
          fields=default_fields,
          description="test collection",
          enable_dynamic_field=enable_dynamic,
      )
      collection = Collection(
          name=name, schema=default_schema, shards_num=shard_num
      )
      logger.info(collection.schema)
      # 2. use restful to get collection info
      client = self.collection_client
      rsp = client.collection_list()
      all_collections = rsp["data"]
      assert name in all_collections
      rsp = client.collection_describe(name)
      assert rsp["code"] == 200
      assert rsp["data"]["collectionName"] == name
      assert rsp["data"]["enableDynamicField"] == enable_dynamic
      assert rsp["data"]["load"] == "LoadStateNotLoad"
      assert rsp["data"]["shardsNum"] == shard_num
  
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 1 for calling the TestRestfulSdkCompatibility obj's underlying member method code with example usage: obj.test_collection_created_by_sdk_describe_by_restful(dim, enable_dynamic, shard_num) without return types