code: def test_mmdet_mask_models_light(mask_dls_model):
      train_dl, valid_dl, model, model_type = mask_dls_model
  
      class LitModel(model_type.lightning.ModelAdapter):
          def configure_optimizers(self):
              return Adam(self.parameters(), lr=1e-4)
  
      light_model = LitModel(model)
      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/mmdet/test_model.py
imports: import pytest
  import random
  from icevision.all import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_mmdet_mask_models_light(mask_dls_model) and returns: Adam