class_docstr: Verbatim DOT source code string to be rendered by Graphviz.
  
  Args:
      source: The verbatim DOT source code string.
      filename: Filename for saving the source (defaults to ``'Source.gv'``).
      directory: (Sub)directory for source saving and rendering.
      format: Rendering output format (``'pdf'``, ``'png'``, ...).
      engine: Layout command used (``'dot'``, ``'neato'``, ...).
      encoding: Encoding for saving the source.
  
  Note:
      All parameters except ``source`` are optional. All of them can be changed
      under their corresponding attribute name after instance creation.
class_docstr_tok: ["Verbatim","DOT","source","code","string","to","be","rendered","by","Graphviz",".","Args",":","source",":","The","verbatim","DOT","source","code","string",".","filename",":","Filename","for","saving","the","source","(","defaults","to","``","'Source.gv","'","``",")",".","directory",":","(","Sub",")","directory","for","source","saving","and","rendering",".","format",":","Rendering","output","format","(","``","'pdf","'","``",",","``","'png","'","``",",","...",")",".","engine",":","Layout","command","used","(","``","'dot","'","``",",","``","'neato","'","``",",","...",")",".","encoding",":","Encoding","for","saving","the","source",".","Note",":","All","parameters","except","``","source","``","are","optional",".","All","of","them","can","be","changed","under","their","corresponding","attribute","name","after","instance","creation","."]
code: def __init__(
      self,
      source,
      filename=None,
      directory=None,
      format=None,
      engine=None,
      encoding=backend.ENCODING,
  ):
      super(Source, self).__init__(
          filename, directory, format, engine, encoding
      )
      self.source = source
  
imports: import codecs
  import io
  import locale
  import logging
  import os
  from ._compat import text_type
  from .None import backend
  from .None import tools
label_desc: Use image node_id 2 to create a new Source object from inherited base classes: File with example: obj = Source(source, filename, directory, format, engine, encoding)