class_docstr: Encodes/decodes between strings and integer representations.
class_docstr_tok: ["Encodes\/decodes","between","strings","and","integer","representations","."]
docstr: Yields `num_examples` examples.
docstr_tok: ["Yields","`","num_examples","`","examples","."]
code: def generate_examples(
      self, num_examples: int
  ) -> Generator[Tuple[str, str], None, None]:
      """Yields `num_examples` examples."""
      for _ in range(num_examples):
          max_digit = pow(10, self._max_len_query_digit) - 1
          # TODO(marcvanzee): Use jax.random here.
          key = tuple(
              sorted(
                  (random.randint(0, 99), random.randint(0, max_digit))
              )
          )
          inputs = f"{key[0]}+{key[1]}"
          # Preprend output by the decoder's start token.
          outputs = "=" + str(key[0] + key[1])
          yield (inputs, outputs)
  
imports: import random
  from typing import Any, Dict, Generator, Optional, Tuple
  import jax.numpy
  import numpy
label_desc: Use image node_id 14 for calling the CharacterTable obj's underlying member method code with example usage: obj.generate_examples(num_examples) without return types