code: def parse_tag(tag):
      # type: (str) -> FrozenSet[Tag]
      """
      Parses the provided tag (e.g. `py3-none-any`) into a frozenset of Tag instances.
  
      Returning a set is required due to the possibility that the tag is a
      compressed tag set.
      """
      tags = set()
      interpreters, abis, platforms = tag.split("-")
      for interpreter in interpreters.split("."):
          for abi in abis.split("."):
              for platform_ in platforms.split("."):
                  tags.add(Tag(interpreter, abi, platform_))
      return frozenset(tags)
  
imports: from __future__ import absolute_import
  import distutils.util
  import collections
  import logging
  import os
  import platform
  import re
  import struct
  import sys
  import sysconfig
  import warnings
  from ._typing import TYPE_CHECKING, cast
label_desc: Use image node_id 1 for calling a global function with example usage: parse_tag(tag) and returns: frozenset