code: def parse_version(string_version):
      match = SEMVER_REGEX.match(string_version)
      if match is None:
          msg = (
              "Invalid version: %s. Accepted versions must match the"
              " following regex pattern: %s"
              % (string_version, SEMVER_PATTERN)
          )
          raise ValueError(msg)
      return match.groupdict()
  
imports: from __future__ import unicode_literals
  import importlib
  import json
  import numbers
  import re
  from builtins import bytes, str
  from datetime import datetime
  from functools import wraps
  from pathlib import Path
  from future.utils import text_type
  from snips_nlu.constants import END, ENTITY_KIND, RES_MATCH_RANGE, RES_VALUE, START
  from snips_nlu.exceptions import NotTrained, PersistingError
label_desc: Use image node_id 15 for calling a global function with example usage: parse_version(string_version) and returns: match