class_docstr: A class for checking if a neural network satisfies constraints. 
docstr: Returns the max ignorning Nones, nans and infs. 
docstr_tok: ["Returns","the","max","ignorning","Nones",",","nans","and","infs","."]
code: def _finite_max_or_min(cls, iterable, is_max):
      """Returns the max ignorning Nones, nans and infs."""
      finite_vals = [
          x for x in iterable if x is not None and np.isfinite(x)
      ]
      return max(finite_vals) if is_max else min(finite_vals)
  
imports: import numpy
  from copy import copy
  from ..exd.domains import Domain
label_desc: Use image node_id 7 for calling the NNConstraintChecker obj's underlying member method code with example usage: obj._finite_max_or_min(cls, iterable, is_max) and returns: unknown