code: def test_restart_torchserve_with_last_snapshot_with_model_mar_removed():
      """Validates that torchserve will fail to start in the following scenario:
      1) We use a snapshot file to start torchserve. The snapshot contains reference to "A" model file
      2) The "A" model mar file is accidentally deleted from the model store
      """
  
      # Register model using mgmt api
      snapshot_created_on_management_api_invoke()
  
      # Now remove the registered model mar file (delete_mar_ fn)
      test_utils.delete_mar_file_from_model_store(
          model_store=os.path.join(test_utils.ROOT_DIR, "model_store"),
          model_mar="densenet",
      )
  
      # Start Torchserve with last generated snapshot file
      snapshot_cfg = glob.glob("logs/config/*snap*.cfg")[0]
      test_utils.start_torchserve(
          snapshot_file=snapshot_cfg, gen_mar=False
      )
      try:
          response = requests.get("http://127.0.0.1:8081/models/")
      except:
          assert (
              True
          ), "Failed to start Torchserve properly as reqd model mar file is missing!!"
      else:
          assert (
              False
          ), "Something is not right!! Successfully started Torchserve without reqd mar file"
      finally:
          test_utils.delete_model_store()
          test_utils.delete_all_snapshots()
  
imports: import platform
  import time
  import os
  import glob
  import requests
  import json
  import test_utils
label_desc: Use image node_id 14 for calling a global function with example usage: test_restart_torchserve_with_last_snapshot_with_model_mar_removed() without return types