code: def __array__(self):
      return self.image.numpy()
  
file_path: avalanche/avalanche/evaluation/metric_results.py
imports: from dataclasses import dataclass
  from typing import List, Optional, TYPE_CHECKING, Tuple, Union
  from PIL.Image import Image
  from matplotlib.figure import Figure
  from torch import Tensor
  from enum import Enum
label_desc: Use image node_id 1 for calling the TensorImage obj's underlying member method code with example usage: obj.__array__() and returns: self