code: def test_determinism(device):
      if device == gpu and not torch.cuda.is_available():
          pytest.skip(msg="CUDA not available.")
  
      t, bm = _setup(device, SMALL_BATCH_SIZE)
      vals = [bm(t) for _ in range(REPS)]
      for val in vals[1:]:
          assert torch.allclose(val, vals[0])
  
file_path: torchsde/tests/test_brownian_tree.py
imports: import sys
  import numpy
  import numpy.random
  import torch
  from scipy.stats import norm, kstest
  import pytest
  import torchsde
label_desc: Use image node_id 4 for calling a global function with example usage: test_determinism(device) without return types