code: def prepare_bulk_insert_json_files(
      minio_endpoint="",
      bucket_name="milvus-bucket",
      is_row_based=True,
      rows=100,
      dim=128,
      auto_id=True,
      str_pk=False,
      float_vector=True,
      data_fields=[],
      file_nums=1,
      multi_folder=False,
      file_type=".json",
      err_type="",
      force=False,
      **kwargs,
  ):
      """
      Generate files based on the params in json format and copy them to minio
  
      :param minio_endpoint: the minio_endpoint of minio
      :type minio_endpoint: str
  
      :param bucket_name: the bucket name of Milvus
      :type bucket_name: str
  
      :param is_row_based: indicate the file(s) to be generated is row based or not
      :type is_row_based: boolean
  
      :param rows: the number entities to be generated in the file(s)
      :type rows: int
  
      :param dim: dim of vector data
      :type dim: int
  
      :param auto_id: generate primary key data or not
      :type auto_id: boolean
  
      :param str_pk: generate string or int as primary key
      :type str_pk: boolean
  
      :param: float_vector: generate float vectors or binary vectors
      :type float_vector: boolean
  
      :param: data_fields: data fields to be generated in the file(s):
              It supports one or all of [pk, vectors, int, float, string, boolean]
              Note: it automatically adds pk field if auto_id=False
      :type data_fields: list
  
      :param file_nums: file numbers to be generated
      :type file_nums: int
  
      :param multi_folder: generate the files in bucket root folder or new subfolders
      :type multi_folder: boolean
  
      :param file_type: specify the file suffix to be generate
      :type file_type: str
  
      :param err_type: inject some errors in the file(s).
          All errors should be predefined in DataErrorType
      :type err_type: str
  
      :param force: re-generate the file(s) regardless existing or not
      :type force: boolean
  
      :param **kwargs
          * *wrong_position* (``int``) --
          indicate the error entity in the file if DataErrorType.one_entity_wrong_dim
  
      :return list
          file names list
      """
      data_fields_c = copy.deepcopy(data_fields)
      log.info(f"data_fields: {data_fields}")
      log.info(f"data_fields_c: {data_fields_c}")
  
      files = gen_json_files(
          is_row_based=is_row_based,
          rows=rows,
          dim=dim,
          auto_id=auto_id,
          str_pk=str_pk,
          float_vector=float_vector,
          data_fields=data_fields_c,
          file_nums=file_nums,
          multi_folder=multi_folder,
          file_type=file_type,
          err_type=err_type,
          force=force,
          **kwargs,
      )
  
      copy_files_to_minio(
          host=minio_endpoint,
          r_source=data_source,
          files=files,
          bucket_name=bucket_name,
          force=force,
      )
      return files
  
imports: import copy
  import json
  import os
  import time
  import numpy
  import pandas
  import random
  from faker import Faker
  from sklearn import preprocessing
  from common.common_func import gen_unique_str
  from common.minio_comm import copy_files_to_minio
  from utils.util_log import test_log
label_desc: Use image node_id 24 for calling a global function with example usage: prepare_bulk_insert_json_files(minio_endpoint, bucket_name, is_row_based, rows, dim, auto_id, str_pk, float_vector, data_fields, file_nums, multi_folder, file_type, err_type, force) and returns: files