code: def warn_once(logger, msg: str):
      logger.warning(msg)
  
imports: import collections
  import logging
  import os
  import random
  from functools import lru_cache
  from typing import Dict, List, Optional, Tuple
  import torch
  import torch.nn.functional
  from torch import nn
  from transformers import AutoConfig, AutoModelForSeq2SeqLM
  from transformers import logging
  from ..constants import AUTOMM, CHOICES_IDS, COLUMN, COLUMN_FEATURES, FEATURES, LABEL, LM_TARGET, LOGITS, MASKS, TEMPLATE_LOGITS, TEXT_SEGMENT_IDS, TEXT_TOKEN_IDS, TEXT_VALID_LENGTH
  from .utils import DummyLayer, assign_layer_ids, get_column_features, get_pretrained_tokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: warn_once(logger, msg) without return types