code: def build_cmd(test):
      args = ["workflow-name", "spec-file", "handler", "export-path"]
      cmd = ["torch-workflow-archiver"]
  
      for arg in args:
          if arg in test:
              cmd.append("--{0} {1}".format(arg, test[arg]))
  
      return " ".join(cmd)
  
file_path: serve/workflow-archiver/workflow_archiver/tests/integ_tests/test_integration_workflow_archiver.py
imports: from datetime import datetime
  import errno
  import json
  import os
  import shutil
  import subprocess
  import workflow_archiver
label_desc: Use image node_id 8 for calling a global function with example usage: build_cmd(test) and returns: str