code: def _labelToFlags(
      label: Union[AxisLabelDescriptor, LocationLabelDescriptor]
  ) -> int:
      flags = 0
      if label.olderSibling:
          flags |= 1
      if label.elidable:
          flags |= 2
      return flags
  
file_path: catboost/contrib/python/fonttools/fontTools/varLib/stat.py
imports: from __future__ import annotations
  from typing import Dict, List, Union
  import fontTools.otlLib.builder
  from fontTools.designspaceLib import AxisLabelDescriptor, DesignSpaceDocument, DesignSpaceDocumentError, LocationLabelDescriptor
  from fontTools.designspaceLib.types import Region, getVFUserRegion, locationInRegion
  from fontTools.ttLib import TTFont
label_desc: Use image node_id 4 for calling a global function with example usage: _labelToFlags(label) and returns: flags