code: def bar_plot(
      values: Dict[str, float],
      uncertainties: Optional[Dict[str, Tuple[float, float]]] = None,
      ylabel: str = "",
      filename: Optional[str] = None,
      display_plot: bool = True,
      figure_size: Optional[List[int]] = None,
      bar_width: float = 0.8,
      xticks: List[str] = None,
      xticks_rotation: int = 90,
      sort_names: bool = True,
  ) -> None:
      """Deprecated, please use dowhy.utils.plotting.bar_plot() instead."""
      warnings.warn(
          "The plot method is deprecated. Use the bar_plot function from dowhy.utils.plotting instead!",
          DeprecationWarning,
      )
      plotting.bar_plot(
          values=values,
          uncertainties=uncertainties,
          ylabel=ylabel,
          filename=filename,
          display_plot=display_plot,
          figure_size=figure_size,
          bar_width=bar_width,
          xticks=xticks,
          xticks_rotation=xticks_rotation,
          sort_names=sort_names,
      )
  
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 3 for calling a global function with example usage: bar_plot(values, uncertainties, ylabel, filename, display_plot, figure_size, bar_width, xticks, xticks_rotation, sort_names) without return types