class_docstr: OCR test problem.
class_docstr_tok: ["OCR","test","problem","."]
code: def preprocess_example(self, example, mode, _):
      # Resize from usual size ~1350x60 to 90x4 in this test.
      img = example["inputs"]
      img = tf.to_int64(
          tf.image.resize_images(
              img, [90, 4], tf.image.ResizeMethod.AREA
          )
      )
      img = tf.image.per_image_standardization(img)
      example["inputs"] = img
      return example
  
file_path: tensor2tensor/tensor2tensor/data_generators/ocr.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import struct
  from tensor2tensor.data_generators import image_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the OcrTest obj's underlying member method code with example usage: obj.preprocess_example(example, mode, _) and returns: example