code: def parse_view_configs(
      variant: str,
  ) -> List[ml_collections.ConfigDict]:
      """Parse per-view model configs from an encoded text.
  
      Each view is encoded in the format of 'vit_version/HxWxT' where H, W, and T
      are the height, width, and temporal dimension of the tubelets, respectively.
      H and W are optional and they are set to 16 for Tiny, Small, Base, and
      Large models and 14 to Huge model by default.
  
      We use '+' to put views together. For example, 'S/8+B/4+L/2' is a three-view
      model composed of a Vit-S (tubelet size=[16, 16, 8]), a ViT-B (tubelet
      size=[16, 16, 4]), and a ViT-L (tubelet size=[16, 16, 2]).
  
      Args:
        variant: a str encoding the model structure.
  
      Returns:
        a list of per-view model configs.
      """
      view_configs = []
      views = variant.split("+")
      for view_variant in views:
          version, tubelet_size = view_variant.split("/")
          shape = tubelet_size.split("x")
          view_config = ml_collections.ConfigDict()
          view_config.hidden_size = HIDDEN_SIZES[version]
          view_config.patches = ml_collections.ConfigDict()
          view_config.num_heads = NUM_HEADS[version]
          view_config.mlp_dim = MLP_DIMS[version]
          view_config.num_layers = NUM_LAYERS[version]
          if len(shape) == 1:
              num_frames = int(shape[0])
              view_config.patches.size = PATCH_SIZES[version] + (
                  num_frames,
              )
          elif len(shape) == 2:
              view_config.patches.size = (
                  int(shape[0]),
                  int(shape[0]),
                  int(shape[1]),
              )
          elif len(shape) == 3:
              view_config.patches.size = (
                  int(shape[0]),
                  int(shape[1]),
                  int(shape[2]),
              )
          else:
              raise ValueError(f"Model variant {variant} is invalid.")
  
          view_configs.append(view_config)
      return view_configs
  
label_desc: Use image node_id 1 for calling a global function with example usage: parse_view_configs(variant) and returns: view_configs