code: def check_glibc_version(version_str, required_major, minimum_minor):
      # Parse string and check against requested version.
      #
      # We use a regexp instead of str.split because we want to discard any
      # random junk that might come after the minor version -- this might happen
      # in patched/forked versions of glibc (e.g. Linaro's version of glibc
      # uses version strings like "2.20-2014.11"). See gh-3588.
      m = re.match(r"(?P<major>[0-9]+)\.(?P<minor>[0-9]+)", version_str)
      if not m:
          warnings.warn(
              "Expected glibc version with 2 components major.minor,"
              " got: %s" % version_str,
              RuntimeWarning,
          )
          return False
      return (
          int(m.group("major")) == required_major
          and int(m.group("minor")) >= minimum_minor
      )
  
file_path: magnitude/glibc.py
imports: from __future__ import absolute_import
  import ctypes
  import re
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: check_glibc_version(version_str, required_major, minimum_minor) and returns: unknown, False