def _import_mpl():
    try:
        import matplotlib.pyplot as plt
    except:
        raise ImportError("Matplotlib is not found.")

    return plt
This function is not needed outside this utils module.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/graphics/utils.py/_import_mpl