code: def task_3(data_size, host):
      """
      task_3:
          before upgrade: create collection, insert data, flush, create index, load with one replicas and search
          after upgrade: get collection, load, search, insert data, create index, release, load with multi replicas, and search
      """
      prefix = "task_3_"
      connections.connect(host=host, port=19530, timeout=60)
      get_collections(prefix)
      create_collections_and_insert_data(prefix, count=data_size)
      create_index(prefix)
      load_and_search(prefix)
  
file_path: milvus/tests/python_client/deploy/scripts/action_before_upgrade.py
imports: from pymilvus import connections
  import sys
  from common.milvus_sys import MilvusSys
  from utils import *
label_desc: Use image node_id 3 for calling a global function with example usage: task_3(data_size, host) without return types