class_docstr: Additional methods;
  Public methods that can be used for test cases.
class_docstr_tok: ["Additional","methods",";","Public","methods","that","can","be","used","for","test","cases","."]
docstr: Add a connection and create the connect 
docstr_tok: ["Add","a","connection","and","create","the","connect"]
code: def _connect(self, enable_high_level_api=False):
      """Add a connection and create the connect"""
      if enable_high_level_api:
          if cf.param_info.param_uri:
              uri = cf.param_info.param_uri
          else:
              uri = (
                  "http://"
                  + cf.param_info.param_host
                  + ":"
                  + str(cf.param_info.param_port)
              )
          res, is_succ = self.connection_wrap.MilvusClient(
              uri=uri, token=cf.param_info.param_token
          )
      else:
          if cf.param_info.param_user and cf.param_info.param_password:
              res, is_succ = self.connection_wrap.connect(
                  alias=DefaultConfig.DEFAULT_USING,
                  host=cf.param_info.param_host,
                  port=cf.param_info.param_port,
                  user=cf.param_info.param_user,
                  password=cf.param_info.param_password,
                  secure=cf.param_info.param_secure,
              )
          else:
              res, is_succ = self.connection_wrap.connect(
                  alias=DefaultConfig.DEFAULT_USING,
                  host=cf.param_info.param_host,
                  port=cf.param_info.param_port,
              )
  
      return res
  
imports: from numpy.core.fromnumeric import _partition_dispatcher
  import pytest
  import sys
  from pymilvus import DefaultConfig
  from base.database_wrapper import ApiDatabaseWrapper
  from base.connections_wrapper import ApiConnectionsWrapper
  from base.collection_wrapper import ApiCollectionWrapper
  from base.partition_wrapper import ApiPartitionWrapper
  from base.index_wrapper import ApiIndexWrapper
  from base.utility_wrapper import ApiUtilityWrapper
  from base.schema_wrapper import ApiCollectionSchemaWrapper, ApiFieldSchemaWrapper
  from base.high_level_api_wrapper import HighLevelApiWrapper
  from utils.util_log import test_log
  from common import common_func
  from common import common_type
  from pymilvus import ResourceGroupInfo
label_desc: Use image node_id 1 for calling the TestcaseBase obj's underlying member method code with example usage: obj._connect(enable_high_level_api) and returns: res