code: def tree2dot(decision_tree, **export_graphviz_kwargs):
      return export_graphviz(
          decision_tree, out_file=None, **export_graphviz_kwargs
      )
  
file_path: eli5/eli5/sklearn/treeinspect.py
imports: from __future__ import absolute_import, division
  from sklearn.base import ClassifierMixin
  from sklearn.tree import _tree, export_graphviz
  from eli5.base import TreeInfo, NodeInfo
label_desc: Use image node_id 2 for calling a global function with example usage: tree2dot(decision_tree) and returns: export_graphviz