code: def random_state(seed):
      """
      Create a RandomState using the provided seed. If seed is None, return the global RandomState.
  
      Args:
          seed (int, optional): random seed
  
      Returns:
          RandomState object
      """
      if seed is None:
          return _rs
      else:
          return _seeded_state(seed)
  
file_path: stellargraph/stellargraph/random.py
imports: import random
  import numpy.random
  import threading
  from collections import namedtuple
label_desc: Use image node_id 3 for calling a global function with example usage: random_state(seed) and returns: _rs, _seeded_state