code: def _minor_version_tuple(version_str: str) -> tuple[int, int]:
      # If not a number, returns -1 (e.g., 999.dev0 -> (999, -1))
      return tuple(
          int(x) if x.isdigit() else -1
          for x in version_str.split(".")[:2]
      )
  
file_path: nni/nni/common/version.py
imports: from __future__ import annotations
  import logging
  import sys
  import warnings
  import cloudpickle
  import json_tricks
  import numpy
  import yaml
  import nni
label_desc: Use image node_id 1 for calling a global function with example usage: _minor_version_tuple(version_str) and returns: tuple