code: def get_args(data):
      args = []
      for idx in map(str, count(start=0)):
          if idx not in data:
              return args
          args.append(_translate(data.pop(idx)))
  
file_path: gluonts/src/gluonts/core/serde/flat.py
imports: from collections import defaultdict
  from itertools import count
  from typing import Any
  from toolz.dicttoolz import keymap, valmap
  from ._base import encode, Kind, decode
label_desc: Use image node_id 5 for calling a global function with example usage: get_args(data) and returns: args