text: import random
  import os
  import numpy as np
  import torch
  
  def seed_everything(seed: int = 42):
      random.seed(seed)
      os.environ['PYTHONHASHSEED'] = str(seed)
      np.random.seed(seed)
      torch.manual_seed(seed)
      torch.cuda.manual_seed(seed)
      torch.cuda.manual_seed_all(seed)
      torch.backends.cudnn.enabled = False
      torch.backends.cudnn.deterministic = True
      os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:2"
      