class_docstr: Base class for image classification problems.
class_docstr_tok: ["Base","class","for","image","classification","problems","."]
code: def example_reading_spec(self):
      label_key = "image/class/label"
      data_fields, data_items_to_decoders = super(
          Image2ClassProblem, self
      ).example_reading_spec()
      data_fields[label_key] = tf.FixedLenFeature((1,), tf.int64)
  
      data_items_to_decoders[
          "targets"
      ] = contrib.slim().tfexample_decoder.Tensor(label_key)
      return data_fields, data_items_to_decoders
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import os
  import numpy
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import metrics
  import tensorflow.compat.v1
label_desc: Use image node_id 8 for calling the Image2ClassProblem obj's underlying member method code with example usage: obj.example_reading_spec() and returns: data_fields,  data_items_to_decoders