code: def test_set_fmin_rstate():
      def lossfn(x):
          return (x - 3) ** 2
  
      trials_seed0 = Trials()
      argmin_seed0 = fmin(
          fn=lossfn,
          space=hp.uniform("x", -5, 5),
          algo=rand.suggest,
          max_evals=1,
          trials=trials_seed0,
          rstate=np.random.default_rng(0),
      )
      assert len(trials_seed0) == 1
      trials_seed1 = Trials()
      argmin_seed1 = fmin(
          fn=lossfn,
          space=hp.uniform("x", -5, 5),
          algo=rand.suggest,
          max_evals=1,
          trials=trials_seed1,
          rstate=np.random.default_rng(1),
      )
      assert len(trials_seed1) == 1
      assert argmin_seed0 != argmin_seed1
  
imports: import unittest
  import numpy
  from timeit import default_timer
  import time
  from hyperopt.early_stop import no_progress_loss
  from hyperopt.fmin import generate_trials_to_calculate
  import pytest
  from hyperopt import fmin, rand, tpe, hp, Trials, exceptions, space_eval, STATUS_FAIL, STATUS_OK
  from hyperopt.base import JOB_STATE_ERROR
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_fmin_rstate() and returns: unknown