code: def random_seed_np_tf(seed):
      
      if seed >= 0:
          np.random.seed(seed)
          tf.set_random_seed(seed)
          return True
      else:
          return False
docs: Seed numpy and tensorflow random number generators.
  
      :param seed: seed parameter