class_docstr: Problem for using MsCoco for generating images from text.
code: def preprocess_example(self, example, mode, unused_hparams):
      example["inputs"] = image_utils.resize_by_area(
          example["inputs"], self._MSCOCO_IMAGE_SIZE
      )
      return example
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import json
  import os
  import random
  import zipfile
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import image_utils
  from tensor2tensor.data_generators import imagenet
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import translate_ende
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the ImageTextMsCoco obj's underlying member method code with example usage: obj.preprocess_example(example, mode, unused_hparams) and returns: example