code: def exposures_for_layer(layer_geometry_key):
      
      result = []
      for exposure in exposure_all:
          if layer_geometry_key in exposure.get('allowed_geometries'):
              result.append(exposure)
  
      return sorted(result, key=lambda k: k['key'])
docs: Get hazard categories form layer_geometry_key
  
      :param layer_geometry_key: The geometry key
      :type layer_geometry_key: str
  
      :returns: List of hazard
      :rtype: list