class_docstr: This tests whether the entrypoints run without errors without quantitative measure of the outputs.
docstr: Get functions from lightning_inference.py
docstr_tok: ["Get","functions","from","lightning_inference.py"]
code: def get_functions(self):
      """Get functions from lightning_inference.py"""
      if find_spec("lightning_inference") is not None:
          from tools.inference.lightning_inference import (
              get_parser,
              infer,
          )
      else:
          raise Exception(
              "Unable to import lightning_inference.py for testing"
          )
      return get_parser, infer
  
file_path: anomalib/tests/pre_merge/tools/test_lightning_entrypoint.py
imports: from __future__ import annotations
  import sys
  from importlib.util import find_spec
  import pytest
  from unittest.mock import patch
label_desc: Use image node_id 1 for calling the TestLightningInferenceEntrypoint obj's underlying member method code with example usage: obj.get_functions() and returns: get_parser,  infer