code: def reset_randomstate():
      """
      Fixture that set the global RandomState to the fixed seed 1
  
      Notes
      -----
      Used by passing as an argument to the function that uses the global
      RandomState
  
      def test_some_plot(reset_randomstate):
          <test code>
  
      Returns the state after the test function exits
      """
      state = np.random.get_state()
      np.random.seed(1)
      yield
      np.random.set_state(state)
  
file_path: statsmodels/statsmodels/conftest.py
imports: import logging
  import os
  import numpy
  import pandas
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: reset_randomstate() without return types