If you are checking that specified geometry lies on given ranges of layers the key is to set this attribute:
# "entity_type1, [entity_type2...] | layer_range"
(list) entity_layer_map: {
"SOLID_BODY, SOLID, SHEET_BODY | 1-50",
"_CURVE | 51-100",
"SKETCH, LINE, ARC, CONIC, SPLINE, DATUMS...