code: def is_cuda(self):
      # either all weights are on cpu or they are on gpu
      return self.enc_lstm.bias_hh_l0.data.is_cuda
  
imports: import time
  import numpy
  import torch
  from torch import nn
  import textattack
label_desc: Use image node_id 2 for calling the InferSentModel obj's underlying member method code with example usage: obj.is_cuda() and returns: self