code: def _err_for_no_mpl():
      if mpl is None:
          # Per Issue #47:
          raise ImportError(
              "You do not have matplotlib installed. In order to "
              "create plots, you'll need to pip install matplotlib!"
          )
  
file_path: pmdarima/pmdarima/utils/visualization.py
imports: from .array import check_endog
  from ..compat.pandas import plotting
  from ..compat.matplotlib import get_compatible_pyplot
  from statsmodels.graphics import tsaplots
  import numpy
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _err_for_no_mpl() without return types