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","."]
code: def write_hierarchical_dotfile(
      self, dotfilename=None, colored=False, simple_form=True
  ):
      dotlist = ["digraph %s{" % self.name]
      dotlist.append(
          self._get_dot(
              prefix="  ", colored=colored, simple_form=simple_form
          )
      )
      dotlist.append("}")
      dotstr = "\n".join(dotlist)
      if dotfilename:
          fp = open(dotfilename, "w")
          fp.writelines(dotstr)
          fp.close()
      else:
          logger.info(dotstr)
  
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 12 for calling the Workflow obj's underlying member method code with example usage: obj.write_hierarchical_dotfile(dotfilename, colored, simple_form) without return types