class_docstr: Helper utils for Workflow Archiver tool.
  This class lists out all the methods such as validations for workflow archiving.
docstr: copy workflow artifacts in a common workflow directory for archiving
  :param workflow_name: name of workflow being archived
  :param artifact_files: list of files to be copied in archive
  :return:
docstr_tok: ["copy","workflow","artifacts","in","a","common","workflow","directory","for","archiving",":","param","workflow_name",":","name","of","workflow","being","archived",":","param","artifact_files",":","list","of","files","to","be","copied","in","archive",":","return",":"]
code: def copy_artifacts(workflow_name, artifact_files):
      """
      copy workflow artifacts in a common workflow directory for archiving
      :param workflow_name: name of workflow being archived
      :param artifact_files: list of files to be copied in archive
      :return:
      """
      workflow_path = os.path.join(tempfile.gettempdir(), workflow_name)
      if os.path.exists(workflow_path):
          shutil.rmtree(workflow_path)
      WorkflowExportUtils.make_dir(workflow_path)
      for path in artifact_files:
          if path:
              for file in path.split(","):
                  shutil.copy(file, workflow_path)
  
      return workflow_path
  
imports: import logging
  import os
  import re
  import zipfile
  import shutil
  import tempfile
  from .workflow_archiver_error import WorkflowArchiverError
  from .manifest_components.manifest import Manifest
  from .manifest_components.workflow import Workflow
label_desc: Use image node_id 7 for calling the WorkflowExportUtils obj's underlying member method code with example usage: obj.copy_artifacts(workflow_name, artifact_files) and returns: workflow_path