def flatten(self):
        models = []
        _, targets = self.get_data()
        for t in targets:
            if isinstance(t, ObjectModel):
                models += [t]
            elif isinstance(t, TargetingCriterion):
                models += t.flatten()

        return models
Returns the next unique greenlet ID.
dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/targeting.py/TargetingCriterion.flatten--crossover with--dataset/ETHPy150Open tellapart/gevent_request_profiler/tellapart/frontend/gevent_profiler.py/ProfilingHub.get_next_greenlet_id