class_docstr: This handler handles connection and execution of the FaunaDB statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","FaunaDB","statements","."]
code: def insert(self, table_name: str, fields, values) -> Response:
      if len(fields) == 1 and fields[0] == "data":
          for value in values:
              value = json.loads(value[0])
              if isinstance(value, dict):
                  value = [value]
              for data in value:
                  self._client.query(
                      q.create(
                          q.collection(table_name),
                          {"data": data},
                      )
                  )
      else:
          for value in values:
              data = {f: v for f, v in zip(fields, value)}
              self._client.query(
                  q.create(
                      q.collection(table_name),
                      {"data": data},
                  )
              )
  
imports: import json
  import pandas
  from collections import OrderedDict
  from typing import List
  from faunadb import query
  from faunadb.client import FaunaClient
  from mindsdb_sql import Select, Insert, CreateTable, Delete
  from mindsdb_sql.parser.ast.select.star import Star
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE, HandlerResponse, HandlerStatusResponse
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 9 for calling the FaunaDBHandler obj's underlying member method code with example usage: obj.insert(table_name, fields, values) without return types