code: def get_seed() -> int:
      """
      Gets the seed set by :func:`set_seed`.
  
      Example
      -------
      >>> from alibi_detect.utils._random import set_seed, get_seed
      >>> set_seed(42)
      >>> get_seed()
      42
      """
      if _ALIBI_SEED is not None:
          return _ALIBI_SEED
      else:
          raise RuntimeError(
              "`set_seed` must be called before `get_seed` can be called."
          )
  
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 2 for calling a global function with example usage: get_seed() and returns: _ALIBI_SEED