class_docstr: Base class for image question answer problem.
class_docstr_tok: ["Base","class","for","image","question","answer","problem","."]
code: def hparams(self, defaults, unused_model_hparams):
      p = defaults
      question_encoder = self._encoders["question"]
      targets_encoder = self._encoders["targets"]
  
      p.modality = {
          "inputs": modalities.ModalityType.IDENTITY,
          "question": modalities.ModalityType.SYMBOL,
          "targets": modalities.ModalityType.MULTI_LABEL,
      }
      p.vocab_size = {
          "inputs": None,
          "question": question_encoder.vocab_size,
          "targets": targets_encoder.vocab_size,
      }
      p.input_space_id = (
          problem.SpaceID.IMAGE
      )  # multiple input features?
      p.target_space_id = self.target_space_id
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import base64
  import csv
  import json
  import os
  import random
  import sys
  import tarfile
  import zipfile
  import numpy
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import image_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import vqa_utils
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import metrics
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 12 for calling the ImageQuestion2MultilabelProblem obj's underlying member method code with example usage: obj.hparams(defaults, unused_model_hparams) without return types