import math


def is_valid_nonzero(value):
    return not (isinstance(value, str) or math.isnan(value) or value == 0)

aff1b519b08b91ee85600738d4a1b3b1d72b240b
<mask token>

<mask token>


def is_valid_nonzero(value):
    return not (isinstance(value, str) or math.isnan(value) or value == 0)

import math


def is_valid_nonzero(value):
    return not (isinstance(value, str) or math.isnan(value) or value == 0)
