code: def set_seed(seed=0):
      """Set random seed for reproducibility of tests."""
      # Python std lib random seed
      random.seed(seed)
      # Numpy, tensorflow, torch
      torch.manual_seed(seed)
      np.random.seed(seed)
      tf.random.set_seed(seed)
      # Additional seeds potentially required when using a gpu
      # (see https://www.youtube.com/watch?v=TB07_mUMt0U&t=1804s)
      os.environ["TF_CUDNN_DETERMINISTIC"] = "true"
      os.environ["TF_DETERMINISTIC_OPS"] = "true"
      os.environ["PYTHONHASHSEED"] = str(seed)
  
imports: import pytest
  import random
  import os
  import numpy
  from tensorflow import keras
  import tensorflow
  import torch
  import torch.nn
  from sklearn.datasets import make_classification, make_regression
  from sklearn.model_selection import train_test_split
  from alibi.explainers.similarity.backends.pytorch.base import _PytorchBackend
  from alibi.explainers.similarity.backends.tensorflow.base import _TensorFlowBackend
label_desc: Use image node_id 1 for calling a global function with example usage: set_seed(seed) without return types