class_docstr: Defines common attributes and functions for workflows and nodes.
  
  Implements the more general view of a task.
class_docstr_tok: ["Defines","common","attributes","and","functions","for","workflows","and","nodes",".","Implements","the","more","general","view","of","a","task","."]
docstr: Clone an EngineBase object.
  
  Parameters
  ----------
  
  name : string (mandatory)
      A clone of node or workflow must have a new name
docstr_tok: ["Clone","an","EngineBase","object",".","Parameters","--","--","--","--","--","name",":","string","(","mandatory",")","A","clone","of","node","or","workflow","must","have","a","new","name"]
code: def clone(self, name):
      """
      Clone an EngineBase object.
  
      Parameters
      ----------
  
      name : string (mandatory)
          A clone of node or workflow must have a new name
  
      """
      if name == self.name:
          raise ValueError(
              'Cloning requires a new name, "%s" is ' "in use." % name
          )
      clone = deepcopy(self)
      clone.name = name
      if hasattr(clone, "_id"):
          clone._id = name
      return clone
  
imports: from copy import deepcopy
  import re
  import numpy
  from ...None import config
  from ...interfaces.base import DynamicTraitedSpec
  from ...utils.filemanip import loadpkl, savepkl
label_desc: Use image node_id 8 for calling the EngineBase obj's underlying member method code with example usage: obj.clone(name) and returns: clone