code: def assert_no_grad(names, maybe_tensors):
      for name, maybe_tensor in zip(names, maybe_tensors):
          if (
              torch.is_tensor(maybe_tensor)
              and maybe_tensor.requires_grad
          ):
              raise ValueError(
                  f"Argument {name} must not require gradient."
              )
  
file_path: torchsde/torchsde/_core/misc.py
imports: import warnings
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: assert_no_grad(names, maybe_tensors) without return types