code: def _norm_version(version, build=""):
      """Normalize the version and build strings and return a single
      version string using the format major.minor.build (or patchlevel).
      """
      l = version.split(".")
      if build:
          l.append(build)
      try:
          strings = list(map(str, map(int, l)))
      except ValueError:
          strings = l
      version = ".".join(strings[:3])
      return version
  
imports: import collections
  import os
  import re
  import sys
  import functools
  import itertools
label_desc: Use image node_id 3 for calling a global function with example usage: _norm_version(version, build) and returns: version