code: def _parse_list(s):
      
      # Range: 'x-y'
      if '-' in s:
          m, M = map(_parse_arg, s.split('-'))
          return list(range(m, M + 1))
      # List of ids: 'x,y,z'
      elif ',' in s:
          return list(map(_parse_arg, s.split(',')))
      else:
          return _parse_arg(s)
docs: Parse a comma-separated list of values (strings or numbers).