code: def init_notebook_plotting(offline: bool = False) -> None:
      """Initialize plotting in notebooks, either in online or offline mode."""
      display_bundle = {
          "text/html": _wrap_js(_js_requires(offline=offline))
      }
      display(display_bundle, raw=True)
      logger.info(
          "Injecting Plotly library into cell. Do not overwrite or delete cell."
      )
      logger.info(
          """
      Please see
      (https://ax.dev/tutorials/visualizations.html#Fix-for-plots-that-are-not-rendering)
      if visualizations are not rendering.
      """.strip()
      )
      init_notebook_mode()
  
imports: from logging import Logger
  from ax.plot.base import AxPlotConfig, AxPlotTypes
  from ax.plot.render import _js_requires, _wrap_js, plot_config_to_html
  from ax.utils.common.logger import get_logger
  from IPython.display import display
  from plotly.offline import init_notebook_mode, iplot
label_desc: Use image node_id 1 for calling a global function with example usage: init_notebook_plotting(offline) without return types