code: def get_mats_params(rndstate):
      def _gen_mat_params(n_matrices, n_dim, kind):
          return make_matrices(
              n_matrices,
              n_dim,
              kind,
              rndstate,
              return_params=True,
              eigvecs_same=True,
          )
  
      return _gen_mat_params
  
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 6 for calling a global function with example usage: get_mats_params(rndstate) and returns: _gen_mat_params, make_matrices