code: def merge_counts(x, y):
      # Merge two hashes which have 'counts' as their values
      # This can be used for example to merge confusion pair counts
      #   conf_pairs = merge_counts(conf_pairs, stats['confusion_pairs'])
      for k, v in y.items():
          if k not in x:
              x[k] = 0
          x[k] += v
      return x
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import re
  from collections import deque
  from enum import Enum
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: merge_counts(x, y) and returns: x