def _skip_if_no_mpl():
    try:
        import matplotlib  # noqa
    except __HOLE__:
        import nose
        raise nose.SkipTest("matplotlib not installed")
dataset/ETHPy150Open pydata/pandas/pandas/util/testing.py/_skip_if_no_mpl