code: def testInputAndTargetVocabSizesAreReversed(self):
      class WasReversedTestProblem(problem_module.Problem):
          def __init__(
              self, input_vocab_size, target_vocab_size, was_reversed
          ):
              super(WasReversedTestProblem, self).__init__(
                  was_reversed, False
              )
              self.input_vocab_size = input_vocab_size
              self.target_vocab_size = target_vocab_size
  
          def hparams(self, defaults, model_hparams):
              hp = defaults
              hp.vocab_size = {
                  "targets": self.target_vocab_size,
                  "inputs": self.input_vocab_size,
              }
  
      problem = WasReversedTestProblem(
          input_vocab_size=1, target_vocab_size=3, was_reversed=True
      )
      p_hparams = problem.get_hparams()
      self.assertEqual(p_hparams.vocab_size["inputs"], 3)
      self.assertEqual(p_hparams.vocab_size["targets"], 1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from tensor2tensor.data_generators import algorithmic
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import problem_hparams
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import test_utils
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 9 for calling the ProblemTest obj's underlying member method code with example usage: obj.testInputAndTargetVocabSizesAreReversed() without return types