code: def add_problem_hparams(hparams, problem_name_or_instance):
      """Add problem hparams for the problems."""
      if isinstance(problem_name_or_instance, problem_lib.Problem):
          problem = problem_name_or_instance
      else:
          problem = registry.problem(problem_name_or_instance)
      p_hparams = problem.get_hparams(hparams)
      hparams.problem = problem
      hparams.problem_hparams = p_hparams
  
file_path: tensor2tensor/tensor2tensor/utils/hparams_lib.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  from tensor2tensor.data_generators import problem
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling a global function with example usage: add_problem_hparams(hparams, problem_name_or_instance) without return types