code: def embed_gru(self, X, H, Y=None):
      E = self.GE(X, H)
      if Y is not None:
          O = self.Wy(Y)
          B = self.By(Y)
      else:
          O = self.Wy.weight
          B = self.By.weight
      return E, O, B
  
imports: from collections import Counter
  import numpy
  import torch
  from torch import nn
  from torch.autograd import Variable
  from torch.optim import Optimizer
  from cornac.utils.common import get_rng
label_desc: Use image node_id 12 for calling the GRU4RecModel obj's underlying member method code with example usage: obj.embed_gru(X, H, Y) and returns: E,  O,  B