code: def fixed_seed(seed: int):
      """
      A context manager to run with a requested random seed (applied to all the RNG's set by :func:`set_seed`).
  
      Parameters
      ----------
      seed
          Value of the random seed to set in the isolated context.
  
      Example
      -------
      .. code-block :: python
  
          set_seed(0)
          with fixed_seed(42):
              dd = cd.LSDDDrift(X_ref)  # seeds equal 42 here
              p_val = dd.predict(X_h0)['data']['p_val']
          # seeds equal 0 here
      """
      orig_seed = get_seed()
      set_seed(seed)
      try:
          yield
      finally:
          set_seed(orig_seed)
  
imports: from contextlib import contextmanager
  import random
  import numpy
  import os
  from alibi_detect.utils.frameworks import has_pytorch, has_tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: fixed_seed(seed) without return types