code: def _assert_no_grad(tensor):
      assert not tensor.requires_grad, (
          "gradients only computed for log_probs - please "
          "mark other tensors as not requiring gradients"
      )
  
imports: import numpy
  import torch
  from torch.autograd import Function, Variable
  from torch.nn import Module
label_desc: Use image node_id 5 for calling a global function with example usage: _assert_no_grad(tensor) without return types