code: def test_basic(device):
      if device == gpu and not torch.cuda.is_available():
          pytest.skip(msg="CUDA not available.")
  
      t, bm = _setup(device)
      sample = bm(t)
      assert sample.size() == (BATCH_SIZE, D)
  
file_path: torchsde/tests/test_brownian_path.py
imports: import sys
  import math
  import numpy
  import numpy.random
  import torch
  from scipy.stats import norm, kstest
  import torchsde
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_basic(device) without return types