code: def test_matrix_plotting_with_labels_and_different_tri(
      mat, labels, tri
  ):
      ax = plot_matrix(mat, labels=labels, tri=tri)
      assert isinstance(ax, mpl.image.AxesImage)
      ax.axes.set_title("Title")
      assert ax._axes.get_title() == "Title"
      for axis in [ax._axes.xaxis, ax._axes.yaxis]:
          assert len(axis.majorTicks) == len(labels)
          for tick, label in zip(axis.majorTicks, labels):
              assert tick.label1.get_text() == label
      plt.close()
  
imports: import matplotlib
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_array_equal
  from nilearn.glm.first_level.design_matrix import make_first_level_design_matrix
  from nilearn.glm.tests._testing import design_with_null_durations
  from nilearn.plotting.matrix_plotting import pad_contrast_matrix, plot_contrast_matrix, plot_design_matrix, plot_event, plot_matrix
label_desc: Use image node_id 11 for calling a global function with example usage: test_matrix_plotting_with_labels_and_different_tri(mat, labels, tri) without return types