code: def set_seed(seed):
      """
      Create a new global RandomState using the provided seed. If seed is None, StellarGraph's global
      RandomState object simply wraps the global random state for each external module.
  
      When trying to create a reproducible workflow using this function, please note that this seed
      only controls the randomness of the non-TensorFlow part of the library. Randomness within
      TensorFlow layers is controlled via TensorFlow's own global random seed, which can be set using
      ``tensorflow.random.set_seed``.
  
      Args:
          seed (int, optional): random seed
  
      """
      global _rs
      if seed is None:
          _rs = _global_state()
      else:
          _rs = _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 4 for calling a global function with example usage: set_seed(seed) without return types