class_docstr: Loads a PyTorch model (`nn.Module`) and tokenizer.
docstr: Tokenize inputs and convert it to ids.
  
  :param inputs: model original input
  :return: list of inputs ids
code: def encode(self, inputs):
      r"""
      Tokenize inputs and convert it to ids.
  
      :param inputs: model original input
      :return: list of inputs ids
  
      """
  
      raise NotImplementedError()
  
file_path: textflint/textflint/input/model/flint_model/torch_model.py
imports: import torch
  from torch.nn import CrossEntropyLoss
  from .flint_model import FlintModel
  from ....common.utils import device
label_desc: Use image node_id 4 for calling the TorchModel obj's underlying member method code with example usage: obj.encode(inputs) without return types