code: def parse_version(version_str):
      if "dev" in version_str:
          return 9999999999
      m = re.match(
          "^(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?", version_str
      )
      if m is None:
          return None
  
      # turn version string to long integer
      version = int(m.group(1)) * 10**9
      if m.group(2) is not None:
          version += int(m.group(2)) * 10**6
      if m.group(3) is not None:
          version += int(m.group(3)) * 10**3
      if m.group(4) is not None:
          version += int(m.group(4))
      return version
  
imports: import copy
  import os
  import re
  import shlex
  import subprocess
  import sys
  import textwrap
  import shlex
  import traceback
  from typing import List
  from distutils.errors import CompileError, DistutilsError, DistutilsPlatformError, DistutilsSetupError, LinkError
  from distutils.version import LooseVersion
  from setuptools import find_packages, setup, Extension
  from setuptools.command.build_ext import build_ext
  from bluefog import __version__
label_desc: Use image node_id 12 for calling a global function with example usage: parse_version(version_str) and returns: version, int, None