code: def test_exception(
      self,
      model,
      dataloader,
      criterion,
      optimizer,
      scheduler,
      configuration,
  ):
      with pytest.raises(ValueError):
          ObjectDetectionTrainer(
              model,
              dataloader,
              dataloader,
              criterion,
              optimizer,
              scheduler,
              configuration,
              num_classes=3,
              callbacks={"frodo": None},
          )
  
imports: import sys
  import pytest
  import torch
  from torch import nn
  from torch.utils.data import Dataset
  from kornia.x import Configuration, ObjectDetectionTrainer
  from kornia.x.trainer import Accelerator
label_desc: Use image node_id 2 for calling the TestObjectDetectionTrainer obj's underlying member method code with example usage: obj.test_exception(model, dataloader, criterion, optimizer, scheduler, configuration) without return types