code: def test_untrained_indexer(self):
      inference_model = InferenceModel(
          trunk=self.model, data_device=TEST_DEVICE
      )
      with self.assertRaises(ValueError):
          inference_model.get_nearest_neighbors(
              self.dataset[0][0].unsqueeze(0), k=10
          )
  
imports: import os
  import unittest
  import uuid
  import faiss
  import torch
  import torchvision
  from torchvision import datasets, transforms
  from pytorch_metric_learning.utils.inference import InferenceModel
  from ..None import TEST_DEVICE
label_desc: Use image node_id 3 for calling the TestInference obj's underlying member method code with example usage: obj.test_untrained_indexer() without return types