def METHOD_NAME(value):
    try:
        return GEOSGeometry(value, srid=4326)
    except ValueError as e:
        if "String or unicode input unrecognized as WKT EWKT, and HEXEWKB." in str(e):
            return None
    except TypeError as e:
        if "Improper geometry input type" in str(e):
            return None