def is_featurelike(feature):
    try:
        return 'geometry' in feature and 'properties' in feature
    except (AttributeError, TypeError):
        return False
Returns true for a Feature-like structure.
dataset/ETHPy150Open bkg/django-spillway/spillway/collections.py/is_featurelike