code: def test_trianalyzer_mismatched_indices():
      # github issue 4999.
      x = np.array([0.0, 1.0, 0.5, 0.0, 2.0])
      y = np.array([0.0, 0.0, 0.5 * np.sqrt(3.0), -1.0, 1.0])
      triangles = np.array(
          [[0, 1, 2], [0, 1, 3], [1, 2, 4]], dtype=np.int32
      )
      mask = np.array([False, False, True], dtype=bool)
      triang = mtri.Triangulation(x, y, triangles, mask=mask)
      analyser = mtri.TriAnalyzer(triang)
      # numpy >= 1.10 raises a VisibleDeprecationWarning in the following line
      # prior to the fix.
      analyser._get_compressed_triangulation()
  
imports: import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal, assert_array_less
  import numpy.ma.testutils
  import pytest
  import matplotlib
  import matplotlib.pyplot
  import matplotlib.tri
  from matplotlib.path import Path
  from matplotlib.testing.decorators import image_comparison, check_figures_equal
label_desc: Use image node_id 30 for calling a global function with example usage: test_trianalyzer_mismatched_indices() without return types