class_docstr: PyTorch model operator base
class_docstr_tok: ["PyTorch","model","operator","base"]
code: def __call__(
      self, img_tensor: torch.Tensor
  ) -> NamedTuple(
      "Outputs", [("embedding", numpy.ndarray), ("breed", str)]
  ):
      Outputs = NamedTuple(
          "Outputs", [("embedding", numpy.ndarray), ("breed", str)]
      )
      outputs = self._model(img_tensor)
      _, preds = torch.max(outputs, 1)
      results = decode_predictions(int(preds))
      return Outputs(outputs.detach().numpy(), results)
  
file_path: towhee/tests/unittests/mock_operators/pytorch_image_classification_operator/pytorch_image_classification_operator.py
imports: import json
  import numpy
  import torch
  from typing import NamedTuple
  from pathlib import Path
  import torchvision
  from towhee.operator import Operator
label_desc: Use image node_id 2 for calling the PyTorchImageClassificationOperator obj's underlying member method code with example usage: obj.__call__(img_tensor) and returns: Outputs