code: def test_single_example_inference(model_name, kitten_image_bytes):
      """
      Full circle test with torchserve
      """
  
      response = requests.post(
          url=f"http://localhost:8080/predictions/{model_name}",
          data=kitten_image_bytes,
      )
  
      import inspect
  
      print(inspect.getmembers(response))
  
      assert response.status_code == 200
  
imports: import asyncio
  import json
  import random
  import shutil
  from pathlib import Path
  from unittest.mock import patch
  from zipfile import ZIP_STORED, ZipFile
  import pytest
  import requests
  import test_utils
  import yaml
  from model_archiver import ModelArchiverConfig
  from torchvision.models.resnet import ResNet18_Weights
  from ts.torch_handler.unit_tests.test_utils.model_dir import download_model
label_desc: Use image node_id 10 for calling a global function with example usage: test_single_example_inference(model_name, kitten_image_bytes) without return types