code: def cuda_reset():
      if torch.cuda.is_available():
          _clear_cuda_memory()
          torch.cuda.reset_peak_memory_stats()
  
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 6 for calling a global function with example usage: cuda_reset() without return types