code: def test_to_pyplot(self, mock_to_pyplot):
      if sys.version_info[0] >= 3:
          PyCM().to_pyplot(True, "test", "test2")
          mock_to_pyplot.assert_called_once_with(
              normalize=True, title="test", cmap="test2"
          )
  
imports: import sys
  from unittest import TestCase
  from mock import MagicMock, patch, ANY
  import torchbearer
  from torchbearer.callbacks import PyCM
  import matplotlib.pyplot
label_desc: Use image node_id 10 for calling the TestPyCM obj's underlying member method code with example usage: obj.test_to_pyplot(mock_to_pyplot) without return types