code: def register_workflow(
      workflow_name, protocol="http", host="localhost", port="8081"
  ):
      print(f"## Registering {workflow_name} workflow")
      model_zoo_url = "https://torchserve.s3.amazonaws.com"
      params = (
          ("url", f"{model_zoo_url}/war_files/{workflow_name}.war"),
      )
      url = f"{protocol}://{host}:{port}/workflows"
      response = requests.post(url, params=params, verify=False)
      return response
  
imports: import os
  import platform
  import sys
  import threading
  from pathlib import Path
  from subprocess import PIPE, STDOUT, Popen
  import requests
  from ts_scripts import marsgen
label_desc: Use image node_id 7 for calling a global function with example usage: register_workflow(workflow_name, protocol, host, port) and returns: response