code: def get_version():
      
      VERSION_FILE = '../malcolm/version.py'
      mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
                     open(VERSION_FILE, 'rt').read(), re.M)
      if mo:
          return mo.group(1)
      else:
          raise RuntimeError(
              'Unable to find version string in {0}.'.format(VERSION_FILE))
docs: Extracts the version number from the version.py file.