code: def test_random_state_seed_transition():
      with pytest.warns(FutureWarning, match="random_state is"):
          norm = Normal(random_state=RandomState(1234))
      with pytest.warns(FutureWarning, match="random_state is"):
          assert isinstance(norm.random_state, RandomState)
      with pytest.raises(ValueError):
          Normal(random_state=RandomState(), seed=1234)
      with pytest.raises(ValueError):
          Normal(random_state=RandomState(), seed=default_rng())
      with pytest.raises(TypeError):
          Normal(seed="1234")
  
file_path: arch/arch/tests/univariate/test_distribution.py
imports: import numpy
  from numpy.random import RandomState, default_rng
  from numpy.testing import assert_almost_equal, assert_array_equal, assert_equal
  import pytest
  from scipy.special import gamma, gammaln
  import scipy.stats
  from arch.univariate.distribution import GeneralizedError, Normal, SkewStudent, StudentsT
label_desc: Use image node_id 7 for calling a global function with example usage: test_random_state_seed_transition() without return types