code: def plot(
      causal_graph: nx.Graph,
      causal_strengths: Optional[Dict[Tuple[Any, Any], float]] = None,
      colors: Optional[Dict[Union[Any, Tuple[Any, Any]], str]] = None,
      filename: Optional[str] = None,
      display_plot: bool = True,
      figure_size: Optional[List[int]] = None,
      **kwargs,
  ) -> None:
      """Deprecated, please use dowhy.utils.plotting.plot() instead."""
      warnings.warn(
          "The plot method is deprecated. Use the plot function from dowhy.utils.plotting instead!",
          DeprecationWarning,
      )
      plotting.plot(
          causal_graph=causal_graph,
          causal_strengths=causal_strengths,
          colors=colors,
          filename=filename,
          display_plot=display_plot,
          figure_size=figure_size,
          **kwargs,
      )
  
file_path: dowhy/dowhy/gcm/util/plotting.py
imports: import logging
  import warnings
  from typing import Any, Dict, List, Optional, Tuple, Union
  import networkx
  import pandas
  from dowhy.utils import plotting
label_desc: Use image node_id 1 for calling a global function with example usage: plot(causal_graph, causal_strengths, colors, filename, display_plot, figure_size) without return types