code: def register_resnet_backbones(register: FlashRegistry):
      for model_name, params in zip(RESNET_MODELS, RESNET_PARAMS):
          register(
              fn=catch_url_error(
                  partial(_resnet, model_name=model_name, **params)
              ),
              name=model_name,
              namespace="vision",
              package="multiple",
              type="resnet",
              weights_paths=params["weights_paths"],  # update
          )
  
imports: from functools import partial
  from typing import Any, Callable, List, Optional, Type, Union
  import torch
  import torch.nn
  from torch import Tensor
  from torch.hub import load_state_dict_from_url
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _TIMM_AVAILABLE
  from flash.core.utilities.url_error import catch_url_error
label_desc: Use image node_id 4 for calling a global function with example usage: register_resnet_backbones(register) without return types