code: def testCreateHparamsFromJson(self):
      # Get json_path
      pkg = os.path.abspath(__file__)
      pkg, _ = os.path.split(pkg)
      pkg, _ = os.path.split(pkg)
      json_path = os.path.join(
          pkg, "test_data", "transformer_test_ckpt", "hparams.json"
      )
  
      # Create hparams
      hparams = hparams_lib.create_hparams_from_json(json_path)
      self.assertEqual(75, len(hparams.values()))
  
file_path: tensor2tensor/tensor2tensor/utils/hparams_lib_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from tensor2tensor.utils import hparams_lib
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the HparamsLibTest obj's underlying member method code with example usage: obj.testCreateHparamsFromJson() without return types