code: def test_duplicate_model_registration_using_local_url_followed_by_http_url():
      # Registration through local mar url is already complete in previous test case.
      # Now try to register same model using http url in this next step
      response = test_utils.register_model(
          "resnet18",
          "https://torchserve.pytorch.org/mar_files/resnet-18.mar",
      )
      time.sleep(15)
      if (
          json.loads(response.content)["code"] == 500
          and json.loads(response.content)["type"]
          == "InternalServerException"
      ):
          assert True, (
              "Internal Server Exception, "
              "Model file already exists!! Duplicate model registration request"
          )
          test_utils.unregister_model("resnet18")
          time.sleep(10)
      else:
          assert (
              False
          ), "Something is not right!! Successfully re-registered existing model "
  
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 6 for calling a global function with example usage: test_duplicate_model_registration_using_local_url_followed_by_http_url() without return types