code: def locationInRegion(
      location: SimpleLocationDict, region: Region
  ) -> bool:
      for name, value in location.items():
          if name not in region:
              return False
          regionValue = region[name]
          if isinstance(regionValue, (float, int)):
              if value != regionValue:
                  return False
          else:
              if value not in regionValue:
                  return False
      return True
  
file_path: catboost/contrib/python/fonttools/fontTools/designspaceLib/types.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Dict, List, Optional, Union, cast
  from fontTools.designspaceLib import AxisDescriptor, DesignSpaceDocument, DesignSpaceDocumentError, RangeAxisSubsetDescriptor, SimpleLocationDict, ValueAxisSubsetDescriptor, VariableFontDescriptor
label_desc: Use image node_id 2 for calling a global function with example usage: locationInRegion(location, region) and returns: True, False, False, False