class_docstr: The tests below essentially check for the output format returned by HF.
  We need to ensure that it is in the format that we expect.
class_docstr_tok: ["The","tests","below","essentially","check","for","the","output","format","returned","by","HF",".","We","need","to","ensure","that","it","is","in","the","format","that","we","expect","."]
code: def test_automatic_speech_recognition(self):
      function_name = "SpeechRecognizer"
      create_function = (
          f"CREATE FUNCTION {function_name} TYPE HuggingFace "
          "TASK 'automatic-speech-recognition' MODEL 'openai/whisper-base';"
      )
      execute_query_fetch_all(self.evadb, create_function)
  
      # TODO: use with SAMPLE AUDIORATE 16000
      select_query = f"SELECT {function_name}(audio) FROM VIDEOS;"
      output = execute_query_fetch_all(self.evadb, select_query)
  
      # verify that output has one row and one column only
      self.assertTrue(output.frames.shape == (1, 1))
      # verify that speech was converted to text correctly
      self.assertTrue(output.frames.iloc[0][0].count("touchdown") == 2)
  
      select_query_with_group_by = f"SELECT {function_name}(SEGMENT(audio)) FROM VIDEOS GROUP BY '240 samples';"
      output = execute_query_fetch_all(
          self.evadb, select_query_with_group_by
      )
  
      # verify that output has one row and one column only
      self.assertEquals(output.frames.shape, (4, 1))
      # verify that speech was converted to text correctly
      self.assertEquals(output.frames.iloc[0][0].count("touchdown"), 1)
  
      drop_function_query = f"DROP FUNCTION {function_name};"
      execute_query_fetch_all(self.evadb, drop_function_query)
  
imports: import unittest
  from test.util import create_text_csv, file_remove, get_evadb_for_testing
  import pytest
  from evadb.executor.executor_utils import ExecutorError
  from evadb.server.command_handler import execute_query_fetch_all
label_desc: Use image node_id 8 for calling the HuggingFaceTests obj's underlying member method code with example usage: obj.test_automatic_speech_recognition() without return types