code: def load_icevision(model_type, backbone, num_classes, **kwargs):
      model = model_type.model(
          backbone=backbone, num_classes=num_classes, **kwargs
      )
  
      backbone = nn.Module()
      params = sum(model.param_groups()[:-1], [])
      for i, param in enumerate(params):
          backbone.register_parameter(f"backbone_{i}", param)
  
      # Param groups cause a pickle error so we remove them
      del model.param_groups
      if hasattr(model, "backbone") and hasattr(
          model.backbone, "param_groups"
      ):
          del model.backbone.param_groups
  
      return (
          model_type,
          model,
          model_type.lightning.ModelAdapter,
          backbone,
      )
  
file_path: lightning-flash/src/flash/core/integrations/icevision/backbones.py
imports: from inspect import getmembers
  from torch import nn
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _ICEVISION_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: load_icevision(model_type, backbone, num_classes) and returns: model_type,  model,  model_type,  backbone