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: Initialize base parameters of a workflow or node.
  
  Parameters
  ----------
  name : string (mandatory)
      Name of this node. Name must be alphanumeric and not contain any
      special characters (e.g., '.', '@').
  base_dir : string
      base output directory (will be hashed before creations)
      default=None, which results in the use of mkdtemp
docstr_tok: ["Initialize","base","parameters","of","a","workflow","or","node",".","Parameters","--","--","--","--","--","name",":","string","(","mandatory",")","Name","of","this","node",".","Name","must","be","alphanumeric","and","not","contain","any","special","characters","(","e.g.",",","'",".","'",",","'","@","'",")",".","base_dir",":","string","base","output","directory","(","will","be","hashed","before","creations",")","default=None",",","which","results","in","the","use","of","mkdtemp"]
code: def __init__(self, name=None, base_dir=None):
      """
      Initialize base parameters of a workflow or node.
  
      Parameters
      ----------
      name : string (mandatory)
          Name of this node. Name must be alphanumeric and not contain any
          special characters (e.g., '.', '@').
      base_dir : string
          base output directory (will be hashed before creations)
          default=None, which results in the use of mkdtemp
  
      """
      self._name = None
      self._hierarchy = None
      self.name = name
      self._id = (
          self.name
      )  # for compatibility with node expansion using iterables
  
      self.base_dir = base_dir
      """Define the work directory for this instance of workflow element."""
  
      self.config = deepcopy(config._sections)
  
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 1 to create a new EngineBase object  with example: obj = EngineBase(name, base_dir)