code: def set_global_seeds(i):
      try:
          import MPI
  
          rank = MPI.COMM_WORLD.Get_rank()
      except ImportError:
          rank = 0
  
      myseed = i + 1000 * rank if i is not None else None
      try:
          import tensorflow as tf
  
          tf.set_random_seed(myseed)
      except ImportError:
          pass
      np.random.seed(myseed)
      random.seed(myseed)
  
imports: import gym
  import numpy
  import os
  import pickle
  import random
  import tempfile
  import zipfile
label_desc: Use image node_id 2 for calling a global function with example usage: set_global_seeds(i) without return types