code: def sanitize(name):
      """Replaces invalid id characters."""
      return re.sub("\\W|^(?=\\d)", "_", name)
  
imports: import re
  from typing import Dict, List, Optional, Tuple, Union
  import numpy
  import torch
  from ludwig.constants import NAME, PREPROCESSING, SEQUENCE, TEXT, TIMESERIES, TYPE
  from ludwig.utils.data_utils import hash_dict
  from ludwig.utils.strings_utils import get_tokenizer_from_registry, UNKNOWN_SYMBOL
label_desc: Use image node_id 5 for calling a global function with example usage: sanitize(name) and returns: re