code: def register_densenet_backbones(register: FlashRegistry):
      if _TORCHVISION_AVAILABLE:
          for model_name in DENSENET_MODELS:
              register(
                  fn=catch_url_error(partial(_fn_densenet, model_name)),
                  name=model_name,
                  namespace="vision",
                  type="densenet",
                  providers=_TORCHVISION,
              )
  
file_path: lightning-flash/src/flash/image/classification/backbones/torchvision.py
imports: from functools import partial
  from typing import Tuple
  import torch.nn
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _TORCHVISION_AVAILABLE
  from flash.core.utilities.providers import _TORCHVISION
  from flash.core.utilities.url_error import catch_url_error
  from flash.image.classification.backbones.resnet import RESNET_MODELS
label_desc: Use image node_id 3 for calling a global function with example usage: register_densenet_backbones(register) without return types