def METHOD_NAME(self):
    for layer in self.ilayers(tooltip=True, geojson=False):
        gridSpec = None
        if s3_tests:
            gridSpec = get_grid_spec(layer)
        if gridSpec is None and layer not in self.emptyGeoTables:
            models = models_from_bodid(layer)
            if not s3_tests and models is None:
                raise SkipTest("Skip Layer, no model found for layer <{}>".format(layer))
            assert (models is not None and len(models) > 0), layer
            for model in models:
                primaryKeyColumn = model.primary_key_column()
                with self.getSession() as session:
                    query = session.query(primaryKeyColumn)
                    query = query.limit(1)
                    try:
                        featureId = query.one()[0]
                    except NoResultFound:
                        featureId = None
                yield layer, featureId, model, primaryKeyColumn