class_docstr: Controls the setup and execution of a pipeline of processes.
class_docstr_tok: ["Controls","the","setup","and","execution","of","a","pipeline","of","processes","."]
docstr: Clone a workflow
  
  .. note::
  
    Will reset attributes used for executing workflow. See
    _init_runtime_fields.
  
  Parameters
  ----------
  
  name: alphanumeric name
      unique name for the workflow
docstr_tok: ["Clone","a","workflow","..","note",":",":","Will","reset","attributes","used","for","executing","workflow",".","See","_init_runtime_fields",".","Parameters","--","--","--","--","--","name",":","alphanumeric","name","unique","name","for","the","workflow"]
code: def clone(self, name):
      """Clone a workflow
  
      .. note::
  
        Will reset attributes used for executing workflow. See
        _init_runtime_fields.
  
      Parameters
      ----------
  
      name: alphanumeric name
          unique name for the workflow
  
      """
      clone = super().clone(name)
      clone._reset_hierarchy()
      return clone
  
imports: import os
  import os.path
  import sys
  from datetime import datetime
  from copy import deepcopy
  import pickle
  import shutil
  import numpy
  from ...None import config, logging
  from ...utils.misc import str2bool
  from ...utils.functions import getsource, create_function_from_source
  from ...interfaces.base import traits, TraitedSpec, TraitDictObject, TraitListObject
  from ...utils.filemanip import save_json
  from .utils import generate_expanded_graph, export_graph, write_workflow_prov, write_workflow_resources, format_dot, topological_sort, get_print_name, merge_dict, format_node
  from .base import EngineBase
  from .nodes import MapNode
label_desc: Use image node_id 2 for calling the Workflow obj's underlying member method code with example usage: obj.clone(name) and returns: clone