code: def test_sync_distant_http_batch_model(
      items,
      headers,
      params,
      expected,
      distant_http_batch_model_lib,
      run_mocked_service,
  ):
      try:
          m = distant_http_batch_model_lib.get(
              "test_distant_http_batch_model"
          )
  
          assert expected == m.predict_batch(
              items, endpoint_headers=headers, endpoint_params=params
          )
  
      except Exception:
          _stop_mocked_service_and_print_stderr(run_mocked_service)
          raise
  
imports: import json
  import os
  import subprocess
  import sys
  import time
  import pydantic
  import pytest
  import requests
  from modelkit.core.library import ModelLibrary
  from modelkit.core.models.distant_model import AsyncDistantHTTPBatchModel, AsyncDistantHTTPModel, DistantHTTPBatchModel, DistantHTTPModel
  from tests import TEST_DIR
label_desc: Use image node_id 13 for calling a global function with example usage: test_sync_distant_http_batch_model(items, headers, params, expected, distant_http_batch_model_lib, run_mocked_service) without return types