code: def AutogradCrypTensor(tensor, requires_grad=True):
      """
      DEPRECATED: CrypTensor with support for autograd, akin to the `Variable`
      originally in PyTorch.
      """
      raise DeprecationWarning(
          "AutogradCrypTensor is deprecated. Please set the "
          "requires_grad attribute on the CrypTensor instead."
      )
      if torch.is_tensor(tensor):
          tensor = crypten.cryptensor(tensor)
      tensor.requires_grad = requires_grad
      return tensor
  
imports: import crypten
  import torch
  from .gradients import AutogradContext
label_desc: Use image node_id 1 for calling a global function with example usage: AutogradCrypTensor(tensor, requires_grad) and returns: tensor