code: def _hparams_value_transformer(key, value):
      out = value()
      if out is None:
          raise TypeError(
              "HParams %s is None. Make sure the registered function "
              "returns the HParams object" % key
          )
      return out
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from tensor2tensor.utils import misc_utils
  import tensorflow.compat.v1
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 9 for calling a global function with example usage: _hparams_value_transformer(key, value) and returns: out