class_docstr: Test case of action before reinstall 
class_docstr_tok: ["Test","case","of","action","before","reinstall"]
code: def create_index(
      self, collection_w, default_index_field, default_index_param
  ):
      index_field_map = dict(
          [
              (index.field_name, index.index_name)
              for index in collection_w.indexes
          ]
      )
      index_infos = [index.to_dict() for index in collection_w.indexes]
      log.info(f"index info: {index_infos}")
      # log.info(f"{default_index_field:} {default_index_param:}")
      if len(index_infos) > 0:
          log.info(
              f"current index param is {index_infos[0]['index_param']}, passed in param is {default_index_param}"
          )
          log.info(
              f"current index name is {index_infos[0]['index_name']}, passed in param is {index_field_map.get(default_index_field)}"
          )
      collection_w.create_index(
          default_index_field,
          default_index_param,
          index_name=index_field_map.get(
              default_index_field, gen_unique_str("test")
          ),
      )
      collection_w.create_index(
          default_string_field_name,
          {},
          index_name=index_field_map.get(
              default_string_field_name, gen_unique_str("test")
          ),
      )
  
file_path: milvus/tests/python_client/deploy/testcases/test_action_second_deployment.py
imports: import pytest
  import re
  import time
  import pymilvus
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
  from common.milvus_sys import MilvusSys
  from utils.util_pymilvus import *
  from deploy.base import TestDeployBase
  from deploy.common import gen_index_param, gen_search_param, get_deploy_test_collections
  from utils.util_log import test_log
label_desc: Use image node_id 3 for calling the TestActionSecondDeployment obj's underlying member method code with example usage: obj.create_index(collection_w, default_index_field, default_index_param) without return types