def METHOD_NAME(s):
    try:
        if math.isinf(float(s)) or math.isnan(float(s)):
            return False
        return True
    except ValueError:
        pass
    try:
        import unicodedata
        value = unicodedata.numeric(s)
        if math.isinf(value) or math.isnan(value):
            return False
        return True
    except (TypeError, ValueError):
        pass
    return False