code: def test_pprint_hparams(self):
      hparams = hparam.HParams(
          int_=1,
          str_="str",
          bool_=True,
          float_=1.1,
          list_int=[1, 2],
          none=None,
      )
  
      # pylint: disable=g-inconsistent-quotes
      expected_string = r"""
  {'bool_': True,
   'float_': 1.1,
   'int_': 1,
   'list_int': [1,
                2],
   'none': None,
   'str_': 'str'}"""
      # pylint: enable=g-inconsistent-quotes
  
      self.assertEqual(
          expected_string, misc_utils.pprint_hparams(hparams)
      )
  
file_path: tensor2tensor/tensor2tensor/utils/misc_utils_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import misc_utils
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the MiscUtilsTest obj's underlying member method code with example usage: obj.test_pprint_hparams() without return types