def is_transform_generator(fn):
    """Return true of the function has been marked with @transform_generator"""
    try:
        return fn.__dict__.get('is_transform_generator', False)
    except AttributeError:
        return False
