code: def assert_labels_equal(l0, l1, decimal=5, comment=True, color=True):
      """Assert two labels are equal."""
      if comment:
          assert_equal(l0.comment, l1.comment)
      if color:
          assert_equal(l0.color, l1.color)
  
      for attr in ["hemi", "subject"]:
          attr0 = getattr(l0, attr)
          attr1 = getattr(l1, attr)
          msg = "label.%s: %r != %r" % (attr, attr0, attr1)
          assert_equal(attr0, attr1, msg)
      for attr in ["vertices", "pos", "values"]:
          a0 = getattr(l0, attr)
          a1 = getattr(l1, attr)
          assert_array_almost_equal(a0, a1, decimal)
  
imports: import glob
  import os
  import pickle
  import shutil
  from itertools import product
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_array_less, assert_equal
  from scipy import sparse
  from mne import grow_labels, labels_to_stc, morph_labels, random_parcellation, read_label, read_labels_from_annot, read_source_estimate, read_source_spaces, read_surface, spatial_tris_adjacency, split_label, stc_to_label, write_labels_to_annot
  from mne.datasets import testing
  from mne.label import Label, _blend_colors, _load_vert_pos, _n_colors, _read_annot, _read_annot_cands, label_sign_flip, select_sources
  from mne.source_estimate import mesh_edges
  from mne.source_space import SourceSpaces
  from mne.surface import _mesh_borders
  from mne.utils import _record_warnings, get_subjects_dir
label_desc: Use image node_id 2 for calling a global function with example usage: assert_labels_equal(l0, l1, decimal, comment, color) without return types