code: def test_should_create_index_with_function(self):
      query = "CREATE INDEX testCreateIndexName ON testCreateIndexInputTable (DummyFeatureExtractor(input)) USING FAISS;"
      execute_query_fetch_all(self.evadb, query)
  
      # Test index function signature.
      index_catalog_entry = (
          self.evadb.catalog().get_index_catalog_entry_by_name(
              "testCreateIndexName"
          )
      )
      self.assertEqual(index_catalog_entry.type, VectorStoreType.FAISS)
      self.assertEqual(
          index_catalog_entry.save_file_path,
          self._index_save_path(),
      )
  
      # Test referenced column.
      input_table_entry = self.evadb.catalog().get_table_catalog_entry(
          "testCreateIndexInputTable"
      )
      input_column = [
          col
          for col in input_table_entry.columns
          if col.name == "input"
      ][0]
      self.assertEqual(
          index_catalog_entry.feat_column_id, input_column.row_id
      )
      self.assertEqual(index_catalog_entry.feat_column, input_column)
  
      # Test on disk index.
      try_to_import_faiss()
      import faiss
  
      index = faiss.read_index(index_catalog_entry.save_file_path)
      distance, row_id = index.search(
          np.array([[0, 0, 0]]).astype(np.float32), 1
      )
      self.assertEqual(distance[0][0], 0)
      self.assertEqual(row_id[0][0], 1)
  
imports: import unittest
  from pathlib import Path
  from test.markers import macos_skip_marker
  from test.util import get_evadb_for_testing, load_functions_for_testing
  import numpy
  import pandas
  import pytest
  from evadb.catalog.catalog_type import VectorStoreType
  from evadb.executor.executor_utils import ExecutorError
  from evadb.models.storage.batch import Batch
  from evadb.server.command_handler import execute_query_fetch_all
  from evadb.storage.storage_engine import StorageEngine
  from evadb.utils.generic_utils import try_to_import_faiss
label_desc: Use image node_id 7 for calling the CreateIndexTest obj's underlying member method code with example usage: obj.test_should_create_index_with_function() without return types