Units tests for train plots (may be Jenkins?)

Hi!

Just want to know, is there any method for unit testing for matplotlib plots generated by PyTorch. And may be with the Jenkins?

looking at this, there is some snippet, from here: https://github.com/pytorch/pytorch/blob/master/test/test_tensorboard.py

TEST_TENSORBOARD = True
try:
    import tensorboard.summary.writer.event_file_writer  # noqa F401
except ImportError:
    TEST_TENSORBOARD = False

TEST_MATPLOTLIB = True
try:
    import matplotlib
    if os.environ.get('DISPLAY', '') == '':
        matplotlib.use('Agg')
    import matplotlib.pyplot as plt
except ImportError:
    TEST_MATPLOTLIB = False
skipIfNoMatplotlib = unittest.skipIf(not TEST_MATPLOTLIB, "no matplotlib")

I don’t know how to use these tests, any help?