code: def get_masks(rndstate):
      def _gen_masks(n_matrices, n_channels):
          return make_masks(
              n_matrices, n_channels, n_channels // 2, rndstate
          )
  
      return _gen_masks
  
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 8 for calling a global function with example usage: get_masks(rndstate) and returns: _gen_masks, make_masks