code: def _get_header_version(path, name):
      """Returns preprocessor defines in C header file."""
      for line in io.open(path, "r", encoding="utf-8"):
          match = re.match(r"#define %s +(\d+)" % name, line)
          if match:
              value = match.group(1)
              return int(value)
  
      raise ConfigError(
          '#define "{}" is either\n'.format(name)
          + "  not present in file {} OR\n".format(path)
          + "  its value is not an integer literal"
      )
  
imports: import io
  import os
  import re
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: _get_header_version(path, name) and returns: int