code: def workflow_prediction(
      workflow_name,
      file_name,
      protocol="http",
      host="localhost",
      port="8080",
      timeout=120,
  ):
      print(f"## Running inference on {workflow_name} workflow")
      url = f"{protocol}://{host}:{port}/wfpredict/{workflow_name}"
      files = {"data": (file_name, open(file_name, "rb"))}
      response = requests.post(url, files=files, timeout=timeout)
      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 9 for calling a global function with example usage: workflow_prediction(workflow_name, file_name, protocol, host, port, timeout) and returns: response