code: def build_configs(name, **kwargs):
      config = model_cfgs[name]
  
      model_architectures = {
          "swin_base_patch4_window12_384": dict(
              patch_size=4,
              window_size=12,
              embed_dim=128,
              img_size=384,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              **kwargs,
          ),
          "swin_base_patch4_window7_224": dict(
              patch_size=4,
              window_size=7,
              embed_dim=128,
              img_size=224,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              **kwargs,
          ),
          "swin_large_patch4_window12_384": dict(
              patch_size=4,
              window_size=12,
              embed_dim=192,
              img_size=384,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              **kwargs,
          ),
          "swin_large_patch4_window7_224": dict(
              patch_size=4,
              window_size=7,
              embed_dim=192,
              img_size=224,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              **kwargs,
          ),
          "swin_small_patch4_window7_224": dict(
              patch_size=4,
              window_size=7,
              embed_dim=96,
              img_size=224,
              depths=(2, 2, 18, 2),
              num_heads=(3, 6, 12, 24),
              **kwargs,
          ),
          "swin_tiny_patch4_window7_224": dict(
              patch_size=4,
              window_size=7,
              embed_dim=96,
              img_size=224,
              depths=(2, 2, 6, 2),
              num_heads=(3, 6, 12, 24),
              **kwargs,
          ),
          "swin_base_patch4_window12_384_in22k": dict(
              patch_size=4,
              window_size=12,
              embed_dim=128,
              img_size=384,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              **kwargs,
          ),
          "swin_base_patch4_window7_224_in22k": dict(
              patch_size=4,
              window_size=7,
              embed_dim=128,
              img_size=224,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              **kwargs,
          ),
          "swin_large_patch4_window12_384_in22k": dict(
              patch_size=4,
              window_size=12,
              embed_dim=192,
              img_size=384,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              **kwargs,
          ),
          "swin_large_patch4_window7_224_in22k": dict(
              patch_size=4,
              window_size=7,
              embed_dim=192,
              img_size=224,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              **kwargs,
          ),
          "swinv2_tiny_patch4_window8_256": dict(
              patch_size=4,
              window_size=8,
              embed_dim=96,
              img_size=256,
              depths=(2, 2, 6, 2),
              num_heads=(3, 6, 12, 24),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_small_patch4_window8_256": dict(
              patch_size=4,
              window_size=8,
              embed_dim=96,
              img_size=256,
              depths=(2, 2, 18, 2),
              num_heads=(3, 6, 12, 24),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_base_patch4_window8_256": dict(
              patch_size=4,
              window_size=8,
              embed_dim=128,
              img_size=256,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_tiny_patch4_window16_256": dict(
              patch_size=4,
              window_size=16,
              embed_dim=96,
              img_size=256,
              depths=(2, 2, 6, 2),
              num_heads=(3, 6, 12, 24),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_small_patch4_window16_256": dict(
              patch_size=4,
              window_size=16,
              embed_dim=96,
              img_size=256,
              depths=(2, 2, 18, 2),
              num_heads=(3, 6, 12, 24),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_base_patch4_window16_256": dict(
              patch_size=4,
              window_size=16,
              embed_dim=128,
              img_size=256,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_base_patch4_window12to16_192to256_22kto1k_ft": dict(
              patch_size=4,
              window_size=16,
              embed_dim=128,
              img_size=256,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              is_v2=True,
              pretrained_window_sizes=[12, 12, 12, 6],
              **kwargs,
          ),
          "swinv2_base_patch4_window12to24_192to384_22kto1k_ft": dict(
              patch_size=4,
              window_size=24,
              embed_dim=128,
              img_size=384,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              is_v2=True,
              pretrained_window_sizes=[12, 12, 12, 6],
              **kwargs,
          ),
          "swinv2_large_patch4_window12to16_192to256_22kto1k_ft": dict(
              patch_size=4,
              window_size=16,
              embed_dim=192,
              img_size=256,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              is_v2=True,
              pretrained_window_sizes=[12, 12, 12, 6],
              **kwargs,
          ),
          "swinv2_large_patch4_window12to24_192to384_22kto1k_ft": dict(
              patch_size=4,
              window_size=24,
              embed_dim=192,
              img_size=384,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              is_v2=True,
              pretrained_window_sizes=[12, 12, 12, 6],
              **kwargs,
          ),
          "swinv2_base_patch4_window12_192_22k": dict(
              patch_size=4,
              window_size=12,
              embed_dim=128,
              img_size=192,
              depths=(2, 2, 18, 2),
              num_heads=(4, 8, 16, 32),
              is_v2=True,
              **kwargs,
          ),
          "swinv2_large_patch4_window12_192_22k": dict(
              patch_size=4,
              window_size=12,
              embed_dim=192,
              img_size=192,
              depths=(2, 2, 18, 2),
              num_heads=(6, 12, 24, 48),
              is_v2=True,
              **kwargs,
          ),
      }
      return model_architectures[name], config
  
label_desc: Use image node_id 2 for calling a global function with example usage: build_configs(name) and returns: model_architectures,  config