code: def try_plot_offline(figs):
      try:
          from plotly.offline import iplot
          from plotly.offline import init_notebook_mode
  
          init_notebook_mode(connected=True)
      except ImportError as e:
          warn_msg = "To draw plots you should install plotly."
          warnings.warn(warn_msg)
          raise ImportError(str(e))
      if not isinstance(figs, list):
          figs = [figs]
      for fig in figs:
          iplot(fig)
  
file_path: catboost/catboost/python-package/catboost/plot_helpers.py
imports: import json
  import os
  import warnings
  from .None import _catboost
label_desc: Use image node_id 1 for calling a global function with example usage: try_plot_offline(figs) without return types