code: def test_insert_into(self, postgres_handler_mock):
      df = pd.DataFrame(
          {
              "id": ["id1", "id2", "id3"],
              "content": [
                  "this is a test",
                  "this is a test",
                  "this is a test",
              ],
              "metadata": [
                  {"test": "test1"},
                  {"test": "test2"},
                  {"test": "test3"},
              ],
              "embeddings": [
                  [1.0, 2.0, 3.0],
                  [1.0, 2.0, 3.0],
                  [1.0, 2.0, 3.0],
              ],
          }
      )
      df2 = pd.DataFrame(
          {
              "id": ["id1", "id2", "id3"],
              "content": [
                  "this is a test",
                  "this is a test",
                  "this is a test",
              ],
              "metadata": [
                  {"test": "test1"},
                  {"test": "test2"},
                  {"test": "test3"},
              ],
              "embeddings": [
                  [1.0, 2.0, 3.0, 4.0],
                  [1.0, 2.0],
                  [1.0, 2.0, 3.0],
              ],  # different dimensions
          }
      )
      self.set_handler(
          postgres_handler_mock, "pg", tables={"df": df, "df2": df2}
      )
      num_record = df.shape[0]
  
      # create a table
      sql = """
              CREATE TABLE chroma_test.test_table (
                  SELECT * FROM pg.df
              )
          """
      self.run_sql(sql)
  
      # insert into a table with values
      sql = """
              INSERT INTO chroma_test.test_table (
                  id,content,metadata,embeddings
              )
              VALUES (
                  'some_unique_id', 'this is a test', '{"test": "test"}', '[1.0, 2.0, 3.0]'
              )
          """
      self.run_sql(sql)
      # check if the data is inserted
      sql = """
              SELECT * FROM chroma_test.test_table
              WHERE id = 'some_unique_id'
          """
      ret = self.run_sql(sql)
      assert ret.shape[0] == 1
  
      # insert without specifying id should also work
      sql = """
              INSERT INTO chroma_test.test_table (
                  content,metadata,embeddings
              )
              VALUES (
                  'this is a test 0', '{"test": "test"}', '[1.0, 2.0, 3.0]'
              )
          """
      self.run_sql(sql)
      # check if the data is inserted
      sql = """
              SELECT * FROM chroma_test.test_table
          """
      ret = self.run_sql(sql)
      assert ret.shape[0] == num_record + 2
  
      # insert into a table with a select statement
      sql = """
              INSERT INTO chroma_test.test_table (
                  content,metadata,embeddings
              )
              SELECT
                  content,metadata,embeddings
              FROM
                  pg.df
          """
      self.run_sql(sql)
      # check if the data is inserted
      sql = """
              SELECT * FROM chroma_test.test_table
          """
      ret = self.run_sql(sql)
      assert (
          ret.shape[0] == num_record + 3
      )  # only one unique record was added
  
      # insert into a table with a select statement, but wrong columns
      with pytest.raises(Exception):
          sql = """
                  INSERT INTO chroma_test.test_table
                  SELECT
                      content,metadata,embeddings as wrong_column
                  FROM
                      pg.df
              """
          self.run_sql(sql)
  
      # insert into a table with a select statement, missing metadata column
      sql = """
              INSERT INTO chroma_test.test_table
              SELECT
                  content,embeddings
              FROM
                  pg.df
          """
      self.run_sql(sql)
  
      # insert into a table with a select statement, missing embedding column, shall raise an error
      with pytest.raises(Exception):
          sql = """
                  INSERT INTO chroma_test.test_table
                  SELECT
                      content,metadata
                  FROM
                      pg.df
              """
          self.run_sql(sql)
  
      # insert into a table with a select statement, with different embedding dimensions, shall raise an error
      sql = """
              INSERT INTO chroma_test.test_table
              SELECT
                  content,metadata,embeddings
              FROM
                  pg.df2
          """
      with pytest.raises(Exception):
          self.run_sql(sql)
  
file_path: mindsdb/mindsdb/integrations/handlers/chromadb_handler/tests/test_chromadb_handler.py
imports: import importlib
  import shutil
  import tempfile
  from unittest.mock import patch
  import pandas
  import pytest
  from mindsdb_sql import parse_sql
  from tests.unit.executor_test_base import BaseExecutorTest
label_desc: Use image node_id 6 for calling the TestChromaDBHandler obj's underlying member method code with example usage: obj.test_insert_into(postgres_handler_mock) without return types