code: def testBasicFcRelu(self):
      x = np.random.randint(256, size=(1, 28, 28, 1))
      y = np.random.randint(10, size=(1, 1))
      hparams = trainer_lib.create_hparams(
          "basic_fc_small", problem_name="image_mnist", data_dir="."
      )
      with self.test_session() as session:
          features = {
              "inputs": tf.constant(x, dtype=tf.int32),
              "targets": tf.constant(y, dtype=tf.int32),
          }
          model = basic.BasicFcRelu(
              hparams, tf_estimator.ModeKeys.TRAIN
          )
          logits, _ = model(features)
          session.run(tf.global_variables_initializer())
          res = session.run(logits)
      self.assertEqual(res.shape, (1, 1, 1, 1, 10))
  
file_path: tensor2tensor/tensor2tensor/models/basic_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.data_generators import mnist
  from tensor2tensor.models import basic
  from tensor2tensor.utils import trainer_lib
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 1 for calling the BasicTest obj's underlying member method code with example usage: obj.testBasicFcRelu() without return types