code: def test_check_glibc_version_warning(version_str):
      with warnings.catch_warnings(record=True) as w:
          _parse_glibc_version(version_str)
          assert len(w) == 1
          assert issubclass(w[0].category, RuntimeWarning)
  
imports: import os
  import pathlib
  import platform
  import sys
  import types
  import warnings
  import pretend
  import pytest
  from packaging import _manylinux
  from packaging._manylinux import _get_glibc_version, _glibc_version_string, _glibc_version_string_confstr, _glibc_version_string_ctypes, _is_compatible, _parse_elf, _parse_glibc_version
label_desc: Use image node_id 6 for calling a global function with example usage: test_check_glibc_version_warning(version_str) without return types