def METHOD_NAME(self, vectors, collection_name, ids=None, partition_tag=None):
    try:
        if not self.has_collection(collection_name):
            self.creat_collection(collection_name)
            self.create_index(collection_name)
            print("collection info: {}".format(self.client.get_collection_info(collection_name)[1]))
        if (partition_tag is not None) and (not self.has_partition(collection_name, partition_tag)):
            self.create_partition(collection_name, partition_tag)
        status, ids = self.client.METHOD_NAME(
            collection_name=collection_name, records=vectors, ids=ids, partition_tag=partition_tag
        )
        self.client.flush([collection_name])
        print(
            "Insert {} entities, there are {} entities after insert data.".format(
                len(ids), self.client.count_entities(collection_name)[1]
            )
        )
        return status, ids
    except Exception as e:
        print("Milvus insert error:", e)