def _do_extrapolate(fill_value):
 return (isinstance(fill_value, string_types) and (fill_value == 'extrapolate'))

def _do_extrapolate ( fill_value ) : return ( isinstance ( fill_value , string_types ) and ( fill_value == 'extrapolate' ) )
helper to check if fill_value == "extrapolate" without warnings .