code: def _single_config_test_pipeline(TestLayoutModel, base_config):
      for config in _construct_valid_config_variations(
          base_config, TestLayoutModel.DETECTOR_NAME
      ):
          model = TestLayoutModel(config)
          image = cv2.imread(
              "tests/fixtures/model/test_model_image.jpg"
          )
          layout = model.detect(image)
          del model
  
      for config in _construct_invalid_config_variations(
          base_config, TestLayoutModel.DETECTOR_NAME
      ):
          with pytest.raises(ValueError):
              model = TestLayoutModel(config)
  
file_path: layout-parser/tests/test_model.py
imports: import pytest
  import cv2
  from layoutparser import load_json
  from layoutparser.models import *
label_desc: Use image node_id 3 for calling a global function with example usage: _single_config_test_pipeline(TestLayoutModel, base_config) without return types