code: def unpack_replabels(tokens, dictionary, max_reps):
      """
      Unpack a token sequence so that replabels are replaced by repeated symbols
      """
      if len(tokens) == 0 or max_reps <= 0:
          return tokens
  
      replabel_idx_to_value = {}
      for i in range(1, max_reps + 1):
          replabel_idx_to_value[
              dictionary.index(replabel_symbol(i))
          ] = i
  
      result = []
      prev_token = -1
      for token in tokens:
          try:
              for _ in range(replabel_idx_to_value[token]):
                  result.append(prev_token)
              prev_token = -1
          except KeyError:
              result.append(token)
              prev_token = token
      return result
  
label_desc: Use image node_id 3 for calling a global function with example usage: unpack_replabels(tokens, dictionary, max_reps) and returns: result, tokens