code: def _plot_as_pyplot_figure(
      pygraphviz_graph: Any,
      figure_size: Optional[Tuple[int, int]] = None,
  ) -> None:
      with tempfile.TemporaryDirectory() as tmp_dir_name:
          pygraphviz_graph.draw(tmp_dir_name + os.sep + "Graph.png")
          img = image.imread(tmp_dir_name + os.sep + "Graph.png")
  
          if figure_size is not None:
              org_fig_size = plt.rcParams["figure.figsize"]
              plt.rcParams["figure.figsize"] = figure_size
  
          plt.imshow(img)
          plt.axis("off")
          plt.show()
  
          if figure_size is not None:
              plt.rcParams["figure.figsize"] = org_fig_size
  
file_path: dowhy/dowhy/utils/plotting.py
imports: import logging
  import os
  import tempfile
  from typing import Any, Dict, List, Optional, Tuple, Union
  import matplotlib.pyplot
  import networkx
  import numpy
  import pandas
  from matplotlib import image
label_desc: Use image node_id 5 for calling a global function with example usage: _plot_as_pyplot_figure(pygraphviz_graph, figure_size) without return types