code: def platform_tags(arch: str) -> Iterator[str]:
      """Generate musllinux tags compatible to the current platform.
  
      :param arch: Should be the part of platform tag after the ``linux_``
          prefix, e.g. ``x86_64``. The ``linux_`` prefix is assumed as a
          prerequisite for the current platform to be musllinux-compatible.
  
      :returns: An iterator of compatible musllinux tags.
      """
      sys_musl = _get_musl_version(sys.executable)
      if (
          sys_musl is None
      ):  # Python not dynamically linked against musl.
          return
      for minor in range(sys_musl.minor, -1, -1):
          yield f"musllinux_{sys_musl.major}_{minor}_{arch}"
  
file_path: catboost/contrib/python/setuptools/py3/pkg_resources/_vendor/packaging/_musllinux.py
imports: import functools
  import re
  import subprocess
  import sys
  from typing import Iterator, NamedTuple, Optional
  from ._elffile import ELFFile
label_desc: Use image node_id 3 for calling a global function with example usage: platform_tags(arch) without return types