code: def test_inference_with_untrained_model_post_as_text(
      model_name, file, expected_result
  ):
      """
      Full circle test with torchserve
      """
  
      with open(Path(CURR_FILE_PATH) / "test_data" / file, "rb") as f:
          response = requests.post(
              url=f"http://localhost:8080/predictions/{model_name}",
              data=f,
          )
  
      assert response.status_code == 200
  
      result_entries = json.loads(response.text)
  
      assert [result_entries] == expected_result
  
file_path: serve/test/pytest/test_example_torchrec_dlrm.py
imports: import json
  import shutil
  import sys
  from pathlib import Path
  import pytest
  import requests
  import test_utils
  import torch
  from model_archiver import ModelArchiverConfig
  from ts.torch_handler.unit_tests.test_utils.mock_context import MockContext
label_desc: Use image node_id 7 for calling a global function with example usage: test_inference_with_untrained_model_post_as_text(model_name, file, expected_result) without return types