code: def _instantiateFeatureVariationRecord(
      record, recIdx, axisLimits, fvarAxes, axisIndexMap
  ):
      applies = True
      shouldKeep = False
      newConditions = []
      from fontTools.varLib.instancer import (
          NormalizedAxisTripleAndDistances,
      )
  
      default_triple = NormalizedAxisTripleAndDistances(-1, 0, +1)
      if record.ConditionSet is None:
          record.ConditionSet = ot.ConditionSet()
          record.ConditionSet.ConditionTable = []
          record.ConditionSet.ConditionCount = 0
      for i, condition in enumerate(record.ConditionSet.ConditionTable):
          if condition.Format == 1:
              axisIdx = condition.AxisIndex
              axisTag = fvarAxes[axisIdx].axisTag
  
              minValue = condition.FilterRangeMinValue
              maxValue = condition.FilterRangeMaxValue
              triple = axisLimits.get(axisTag, default_triple)
  
              if not (minValue <= triple.default <= maxValue):
                  applies = False
  
              # if condition not met, remove entire record
              if triple.minimum > maxValue or triple.maximum < minValue:
                  newConditions = None
                  break
  
              if axisTag in axisIndexMap:
                  # remap axis index
                  condition.AxisIndex = axisIndexMap[axisTag]
  
                  # remap condition limits
                  newRange = _limitFeatureVariationConditionRange(
                      condition, triple
                  )
                  if newRange:
                      # keep condition with updated limits
                      minimum, maximum = newRange
                      condition.FilterRangeMinValue = minimum
                      condition.FilterRangeMaxValue = maximum
                      shouldKeep = True
                      if minimum != -1 or maximum != +1:
                          newConditions.append(condition)
                  else:
                      # condition out of range, remove entire record
                      newConditions = None
                      break
  
          else:
              log.warning(
                  "Condition table {0} of FeatureVariationRecord {1} has "
                  "unsupported format ({2}); ignored".format(
                      i, recIdx, condition.Format
                  )
              )
              applies = False
              newConditions.append(condition)
  
      if newConditions is not None and shouldKeep:
          record.ConditionSet.ConditionTable = newConditions
          if not newConditions:
              record.ConditionSet = None
          shouldKeep = True
      else:
          shouldKeep = False
  
      # Does this *always* apply?
      universal = shouldKeep and not newConditions
  
      return applies, shouldKeep, universal
  
file_path: catboost/contrib/python/fonttools/fontTools/varLib/instancer/featureVars.py
imports: from fontTools.ttLib.tables import otTables
  from copy import deepcopy
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _instantiateFeatureVariationRecord(record, recIdx, axisLimits, fvarAxes, axisIndexMap) and returns: applies,  shouldKeep,  universal