code: def get_covmats(rndstate):
      def _gen_cov(n_matrices, n_channels):
          return make_matrices(
              n_matrices,
              n_channels,
              "spd",
              rndstate,
              return_params=False,
              eigvecs_same=False,
          )
  
      return _gen_cov
  
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 3 for calling a global function with example usage: get_covmats(rndstate) and returns: _gen_cov, make_matrices