code: def make_deterministic(warn_only=False):
      os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8"
      torch.use_deterministic_algorithms(True, warn_only=warn_only)
      torch.backends.cudnn.benchmark = False
      torch.manual_seed(1)
      torch.cuda.manual_seed(1)
  
file_path: pytorch-lightning/tests/parity_fabric/utils.py
imports: import os
  import torch
  from lightning.fabric.accelerators.cuda import _clear_cuda_memory
label_desc: Use image node_id 4 for calling a global function with example usage: make_deterministic(warn_only) without return types