code: def set_seeds(seed: int):
      """Set seeds for reproducibility.
  
      Parameters
      ----------
      seed : int
          Seed to be set
      """
      if seed is not None and isinstance(seed, int):
          np.random.seed(seed)
          random.seed(seed)
          if "torch" in sys.modules:
              import torch  # pylint: disable=import-outside-toplevel
  
              torch.manual_seed(seed)
          if "tensorflow" in sys.modules:
              import tensorflow as tf  # pylint: disable=import-outside-toplevel
  
              tf.random.set_seed(seed)
  
imports: import random
  import sys
  import typing
  from collections import Counter
  from enum import Enum
  from numbers import Number
  import numpy
  from typing_extensions import NotRequired, TypedDict
  from deepchecks.core.errors import DatasetValidationError
  from deepchecks.utils.logger import get_logger
label_desc: Use image node_id 8 for calling a global function with example usage: set_seeds(seed) without return types