code: def cuda(self):
      for model in self.models:
          model.cuda()
      return self
  
imports: import math
  from typing import List, Tuple
  import torch
  from fairseq import search, utils
  from fairseq.models import FairseqIncrementalDecoder
  from pytorch_translate import utils
  from torch import Tensor
label_desc: Use image node_id 2 for calling the SequenceGenerator obj's underlying member method code with example usage: obj.cuda() and returns: self