code: def test_multiple_model_versions_registration():
      # Download resnet-18 model
  
      create_resnet_archive("resnet-18", "1.0")
      create_resnet_archive("resnet-18_v2", "2.0")
  
      test_utils.start_torchserve(no_config_snapshots=True)
  
      response = requests.get(
          "http://localhost:8081/models/resnet18/all"
      )
      print(response.content)
  
      test_utils.register_model("resnet18", "resnet-18.mar")
      test_utils.register_model("resnet18", "resnet-18_v2.mar")
  
      response = requests.get(
          "http://localhost:8081/models/resnet18/all"
      )
      time.sleep(5)
      # Verify that we can use the list models api to get all versions of resnet-18
      assert len(json.loads(response.content)) == 2
  
file_path: serve/test/pytest/test_model_archiver.py
imports: import subprocess
  import time
  import os
  import glob
  import requests
  import json
  import test_utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_multiple_model_versions_registration() without return types