code: def load_hparams(checkpoint_path):
      # hparams_fpath = os.path.join(os.path.dirname(checkpoint_path), 'config')
      hparams_fpath = os.path.join(checkpoint_path, "config")
      with tf.gfile.Open(hparams_fpath, "r") as p:
          hparams = Hyperparameters.load(p)
      return hparams
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import os
  from magenta.models.coconet import lib_util
  import numpy
  import six
  import tensorflow.compat.v1
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: load_hparams(checkpoint_path) and returns: hparams