code: def add(self, gold, prediction):
      raise NotImplementedError
  
imports: import collections
  import logging
  import os
  from dataclasses import dataclass, field
  from typing import Callable, Dict, List, Optional, Tuple, Union
  import numpy
  import torch
  from torch.utils.data import DataLoader
  from torch.utils.data.dataset import Dataset
  from tqdm import tqdm
  from adapters import AdapterTrainer
  from transformers import DataCollator, EvalPrediction, PreTrainedModel, PreTrainedTokenizerBase, Trainer, TrainerCallback, TrainingArguments, is_torch_tpu_available
  from transformers.trainer_utils import PredictionOutput
label_desc: Use image node_id 1 for calling the Metric obj's underlying member method code with example usage: obj.add(gold, prediction) without return types