code: def get_labels():
      def _get_labels(n_matrices, n_classes):
          return np.arange(n_classes).repeat(n_matrices // n_classes)
  
      return _get_labels
  
file_path: pyRiemann/tests/conftest.py
imports: import pytest
  import numpy
  from functools import partial
  from pyriemann.datasets import make_matrices, make_masks
label_desc: Use image node_id 7 for calling a global function with example usage: get_labels() and returns: _get_labels, np