def METHOD_NAME(self, args):
    # Since `--opts` in PaddleRec does not use `action='append'`
    # We collect and arrange all opts args here
    # e.g.: python tools/train.py --config xxx --opts a=1 c=3 --opts b=2
    # => python tools/train.py --config xxx c=3 --opts a=1 b=2
    # NOTE: This is an inplace operation
    def _is_opts_arg(arg):
        return arg.key.lstrip().startswith('--opts')
    # We note that Python built-in `sorted()` preserves the order (stable)
    args = sorted(args, key=_is_opts_arg)
    found = False
    for arg in args:
        if _is_opts_arg(arg):
            if found:
                arg.key = arg.key.replace('--opts', '')
            else:
                # Found first
                found = True
    return args