code: def fix_rng_seed(seed):
      """
      Call this function at the beginning of program to fix rng seed within tensorpack.
  
      Args:
          seed (int):
  
      Note:
          See https://github.com/tensorpack/tensorpack/issues/196.
  
      Example:
  
          Fix random seed in both tensorpack and tensorflow.
  
      .. code-block:: python
  
              seed = 42
              utils.fix_rng_seed(seed)
              tesnorflow.set_random_seed(seed)
              # run trainer
      """
      global _RNG_SEED
      _RNG_SEED = int(seed)
  
file_path: tensorpack/tensorpack/utils/utils.py
imports: import inspect
  import numpy
  import re
  import os
  import sys
  from contextlib import contextmanager
  from datetime import datetime, timedelta
  from tqdm import tqdm
  from .None import logger
  from .concurrency import subproc_call
label_desc: Use image node_id 3 for calling a global function with example usage: fix_rng_seed(seed) without return types