code: def predict(self, inputs):
      self.model.eval()
      units, _, features, _ = inputs
  
      device = next(self.model.parameters()).device
      units = units.to(device)
      features = features.to(device)
  
      pred = self.model(units, features)
  
      return pred.data.cpu().numpy()
  
file_path: stanza/stanza/models/tokenization/trainer.py
imports: import sys
  import logging
  import torch
  import torch.nn
  import torch.optim
  from stanza.models.common import utils
  from stanza.models.common.trainer import Trainer
  from stanza.models.tokenization.utils import create_dictionary
  from .model import Tokenizer
  from .vocab import Vocab
label_desc: Use image node_id 3 for calling the Trainer obj's underlying member method code with example usage: obj.predict(inputs) and returns: pred