code: def set_seed(seed):
      if seed:
          if seed == -1:
              # From detectron2
              seed = (
                  os.getpid()
                  + int(datetime.now().strftime("%S%f"))
                  + int.from_bytes(os.urandom(2), "big")
              )
          np.random.seed(seed)
          torch.manual_seed(seed)
          random.seed(seed)
  
      return seed
  
file_path: mmf/mmf/utils/env.py
imports: import glob
  import importlib
  import logging
  import os
  import random
  import sys
  from datetime import datetime
  import numpy
  import torch
  from omegaconf import OmegaConf, open_dict
label_desc: Use image node_id 1 for calling a global function with example usage: set_seed(seed) and returns: seed