code: def vjp(outputs, inputs, **kwargs):
      if torch.is_tensor(inputs):
          inputs = [inputs]
      _dummy_inputs = [
          torch.as_strided(i, (), ()) for i in inputs
      ]  # Workaround for PyTorch bug #39784.  # noqa: 74
  
      if torch.is_tensor(outputs):
          outputs = [outputs]
      outputs = make_seq_requires_grad(outputs)
  
      _vjp = torch.autograd.grad(outputs, inputs, **kwargs)
      return convert_none_to_zeros(_vjp, inputs)
  
file_path: torchsde/torchsde/_core/misc.py
imports: import warnings
  import torch
label_desc: Use image node_id 12 for calling a global function with example usage: vjp(outputs, inputs) and returns: convert_none_to_zeros