code: def test_lightining_faster_rcnn_train(
      fridge_faster_rcnn_dls,
      fridge_faster_rcnn_model,
      light_model_cls,
      metrics,
  ):
      train_dl, valid_dl = fridge_faster_rcnn_dls
      light_model = light_model_cls(
          fridge_faster_rcnn_model, metrics=metrics
      )
  
      trainer = pl.Trainer(
          max_epochs=1,
          enable_model_summary=False,
          num_sanity_val_steps=0,
          logger=False,
          enable_checkpointing=False,
      )
      trainer.fit(light_model, train_dl, valid_dl)
  
file_path: icevision/tests/models/torchvision_models/faster_rcnn/lightning/test_train.py
imports: import pytest
  import random
  from icevision.all import *
  from icevision.models.torchvision import faster_rcnn
label_desc: Use image node_id 2 for calling a global function with example usage: test_lightining_faster_rcnn_train(fridge_faster_rcnn_dls, fridge_faster_rcnn_model, light_model_cls, metrics) without return types