code: def _concatenated_list(s):
      """Expands list concatantion syntax to a list of repeating values.
  
      For example, the value "[1]*3" is expanded to `[1,1,1]`, the value
      "[1,2]*2" to `[1,2,1,2]` and so on.
      """
      m = LIST_CONCAT_P.match(s.strip())
      if not m:
          raise ValueError(s)
      maybe_list = _decode_flag_val(m.group(1))
      if isinstance(maybe_list, list):
          return maybe_list * int(m.group(2))
      return s
  
imports: import logging
  import os
  import re
  import yaml
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 26 for calling a global function with example usage: _concatenated_list(s) and returns: s, unknown