code: def test_spacy_ner(self, mock_handler):
      self.run_sql("CREATE DATABASE proj")
  
      text = ["Apple is looking at buying U.K. startup for $1 billion"]
      df = pd.DataFrame(text, columns=["text"])
  
      self.set_handler(mock_handler, name="pg", tables={"df": df})
  
      self.run_sql(
          """
              CREATE MODEL proj.spacy__ner__model
              PREDICT recognition
              USING
                engine = 'spacy'
                linguistic_feature = 'ner',
                target_column = 'text';
              """
      )
  
      result_df = self.run_sql(
          """
              SELECT recognition
              FROM proj.spacy__ner__model
              WHERE
              text='Apple is looking at buying U.K. startup for $1 billion';
              """
      )
  
      assert (
          "{(28, 32, 'GPE'), (45, 55, 'MONEY'), (1, 6, 'ORG')}"
          in result_df["recognition"].iloc[0]
      )
  
file_path: mindsdb/tests/unit/ml_handlers/test_spacy.py
imports: from unittest.mock import patch
  import pandas
  from mindsdb_sql import parse_sql
  from tests.unit.executor_test_base import BaseExecutorTest
label_desc: Use image node_id 2 for calling the TestSpacy obj's underlying member method code with example usage: obj.test_spacy_ner(mock_handler) without return types