code: def snapshot_created_on_management_api_invoke(
      model_mar="densenet161.mar",
  ):
      test_utils.delete_all_snapshots()
      test_utils.start_torchserve()
      mar_path = "mar_path_{}".format(model_mar[0:-4])
      if mar_path in test_utils.mar_file_table:
          requests.post("http://127.0.0.1:8081/models?url=" + model_mar)
      else:
          requests.post(
              "http://127.0.0.1:8081/models?url=https://torchserve.pytorch.org/mar_files/"
              + model_mar
          )
      time.sleep(10)
      test_utils.stop_torchserve()
  
imports: import platform
  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: snapshot_created_on_management_api_invoke(model_mar) without return types