code: def test_openai_embedding(self, mock_handler):
      self.run_sql("create database proj")
      # create the model
      self.run_sql(
          """
              CREATE MODEL proj.test_openai_embedding
              PREDICT embeddings
              USING
                  engine='langchain_embedding',
                  class = 'openai'
              """
      )
  
      self.wait_predictor("proj", "test_openai_embedding")
  
      # single line prediction
      ret = self.run_sql(
          """
              SELECT * FROM proj.test_openai_embedding
              WHERE content='hello'
              """
      )
  
      assert "content" in ret.columns
      assert "embeddings" in ret.columns
  
      # multiple lines
      # insert data
      df = pd.DataFrame(
          [
              ["hello"],
              ["world"],
              ["foo"],
              ["bar"],
          ],
          columns=["content"],
      )
      self.set_handler(mock_handler, name="pg", tables={"df": df})
  
      # query
      ret = self.run_sql(
          """
              SELECT * FROM proj.test_openai_embedding
              JOIN pg.df
              """
      )
  
      assert "content" in ret.columns
      assert "embeddings" in ret.columns
      assert ret.shape[0] == 4
  
file_path: mindsdb/tests/unit/ml_handlers/test_langchain_embedding.py
imports: import os
  import time
  from unittest.mock import patch
  import pandas
  import pytest
  from mindsdb_sql import parse_sql
  from ..executor_test_base import BaseExecutorTest
label_desc: Use image node_id 6 for calling the TestLangchainEmbedding obj's underlying member method code with example usage: obj.test_openai_embedding(mock_handler) without return types