code: def get_mats(rndstate):
      def _gen_mat(n_matrices, n_dim, kind):
          return make_matrices(
              n_matrices, n_dim, kind, rndstate, return_params=False
          )
  
      return _gen_mat
  
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 5 for calling a global function with example usage: get_mats(rndstate) and returns: _gen_mat, make_matrices