class_docstr: Base class for image classification problems.
class_docstr_tok: ["Base","class","for","image","classification","problems","."]
code: def generate_data(self, data_dir, tmp_dir, task_id=-1):
      generator_utils.generate_dataset_and_shuffle(
          self.generator(data_dir, tmp_dir, True),
          self.training_filepaths(
              data_dir, self.train_shards, shuffled=False
          ),
          self.generator(data_dir, tmp_dir, False),
          self.dev_filepaths(data_dir, self.dev_shards, shuffled=False),
      )
  
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 10 for calling the Image2ClassProblem obj's underlying member method code with example usage: obj.generate_data(data_dir, tmp_dir, task_id) without return types