Implement a function bpe_decode(ids, vocab) that decodes a list of token IDs back into the original text string using a BPE-style vocabulary.
The vocabulary is a dictionary mapping integer token IDs to their string representations. In BPE tokenizers (such as the one used by GPT-2), a leading space in the original text is represented by a special marker character G (capital G) at the start of a token in this simplified version. That is, whenever a token begins with the character G, that G should be replaced by a single space ' ' during decoding.
vocab to get its string form.G, replace that leading G with a single space ' '.ids is empty, return an empty string ''.vocab.G marker; any G later inside a token is left untouched.