class_docstr: This tests whether the entrypoints run without errors without quantitative measure of the outputs.
  
  Note: This does not launch the gradio server. It only checks if the right inferencer is called.
docstr: Test gradio_inference.py
docstr_tok: ["Test","gradio_inference.py"]
code: def test_openvino_inference(
      self, get_functions, project_path, get_config, transforms_config
  ):
      """Test gradio_inference.py"""
      parser, inferencer = get_functions
      model = get_model(get_config("padim"))
  
      # export OpenVINO model
      export(
          task=TaskType.SEGMENTATION,
          transform=transforms_config,
          input_size=(100, 100),
          model=model,
          export_mode=ExportMode.OPENVINO,
          export_root=project_path,
      )
  
      arguments = parser().parse_args(
          [
              "--weights",
              project_path + "/weights/openvino/model.bin",
              "--metadata",
              project_path + "/weights/openvino/metadata.json",
          ]
      )
      assert isinstance(
          inferencer(arguments.weights, arguments.metadata),
          OpenVINOInferencer,
      )
  
      # test error is raised when metadata is not provided to openvino model
      with pytest.raises(ValueError):
          arguments = parser().parse_args(
              [
                  "--weights",
                  project_path + "/weights/openvino/model.bin",
              ]
          )
          inferencer(arguments.weights, arguments.metadata)
  
file_path: anomalib/tests/pre_merge/tools/test_gradio_entrypoint.py
imports: from __future__ import annotations
  import sys
  from importlib.util import find_spec
  import pytest
  from anomalib.data import TaskType
  from anomalib.deploy import ExportMode, OpenVINOInferencer, TorchInferencer, export
  from anomalib.models import get_model
label_desc: Use image node_id 3 for calling the TestGradioInferenceEntrypoint obj's underlying member method code with example usage: obj.test_openvino_inference(get_functions, project_path, get_config, transforms_config) without return types