code: def print_hparams(hparams, skip_patterns=None, header=None):
      """Print hparams, can skip keys based on pattern."""
      if header:
          print_out("%s" % header)
      values = hparams.values()
      for key in sorted(values.keys()):
          if not skip_patterns or all(
              [
                  skip_pattern not in key
                  for skip_pattern in skip_patterns
              ]
          ):
              print_out("  %s=%s" % (key, str(values[key])))
  
imports: from __future__ import print_function
  import codecs
  import collections
  import json
  import math
  import os
  import sys
  import time
  from distutils import version
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: print_hparams(hparams, skip_patterns, header) without return types