code: def set_random_number_generator(seed_v=1234):
      """Decorator to use a fixed value for the random generator seed.
  
      This will make the tests that use random functions reproducible.
  
      """
  
      def _set_random_number_generator(func):
          def _set_random_number_generator_wrapper(
              pytestconfig, *args, **kwargs
          ):
              rng = np.random.default_rng(seed_v)
              kwargs["rng"] = rng
              signature = inspect.signature(func)
              if (
                  pytestconfig
                  and "pytestconfig" in signature.parameters.keys()
              ):
                  output = func(pytestconfig, *args, **kwargs)
              else:
                  output = func(*args, **kwargs)
              return output
  
          return _set_random_number_generator_wrapper
  
      return _set_random_number_generator
  
file_path: dipy/dipy/testing/decorators.py
imports: import re
  import os
  import platform
  import inspect
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: set_random_number_generator(seed_v) and returns: _set_random_number_generator, _set_random_number_generator_wrapper, output