<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert(self, data, using_name=True):
 """Insert one or many records. :param data: dict type data or list of dict :param using_name: if you are using field name in data, please set using_name = True (it's the default), otherwise, False **中文文档** 插入多条记录 """

        if isinstance(data, list): # if iterable, insert one by one
            for d in data:
                self.insert_one(d, using_name=using_name)
        else: # not iterable, execute insert_one
            self.insert_one(data, using_name=using_name)