code: def _parse(version):
      match = _VERSION_RE.match(version)
      if match is None:
          raise ValueError(
              f"string: expected a valid version, found {version!r}"
          )
  
      major = int(match["major"])
      minor = int(match["minor"])
      patch = int(match["patch"])
      suffix = _Suffix(match["suffix"])
      return major, minor, patch, suffix
  
file_path: stellargraph/stellargraph/utils/version_validation.py
imports: import warnings
  import re
  from ..None import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: _parse(version) and returns: major,  minor,  patch,  suffix