code: def com_google_fonts_check_fsselection(ttFont, style):
    
    from fontbakery.utils import check_bit_entry
    from fontbakery.constants import (STATIC_STYLE_NAMES,
                                      RIBBI_STYLE_NAMES,
                                      FsSelection)
  
    # Checking fsSelection REGULAR bit:
    expected = "Regular" in style or \
               (style in STATIC_STYLE_NAMES and
                style not in RIBBI_STYLE_NAMES and
                "Italic" not in style)
    yield check_bit_entry(ttFont, "OS/2", "fsSelection",
                          expected,
                          bitmask=FsSelection.REGULAR,
                          bitname="REGULAR")
  
    # Checking fsSelection ITALIC bit:
    expected = "Italic" in style
    yield check_bit_entry(ttFont, "OS/2", "fsSelection",
                          expected,
                          bitmask=FsSelection.ITALIC,
                          bitname="ITALIC")
  
    # Checking fsSelection BOLD bit:
    expected = style in ["Bold", "BoldItalic"]
    yield check_bit_entry(ttFont, "OS/2", "fsSelection",
                          expected,
                          bitmask=FsSelection.BOLD,
                          bitname="BOLD")
docs: Checking OS/2 fsSelection value.