class_docstr: Check variables in the graph for NaN and Inf.
  Raise an exception if such an error is found.
class_docstr_tok: ["Check","variables","in","the","graph","for","NaN","and","Inf",".","Raise","an","exception","if","such","an","error","is","found","."]
code: def _get_op(self):
      vars = tf.trainable_variables()
      ops = [
          tf.check_numerics(
              v, "CheckNumerics['{}']".format(v.op.name)
          ).op
          for v in vars
      ]
      check_op = tf.group(*ops, name="CheckAllNumerics")
      return check_op
  
imports: import numpy
  import os
  from ..compat import tfv1
  from ..tfutils.common import get_op_tensor_name
  from ..utils import logger
  from .base import Callback
label_desc: Use image node_id 2 for calling the CheckNumerics obj's underlying member method code with example usage: obj._get_op() and returns: check_op