class_docstr: An object holding the states surrounding the dumping callback.
class_docstr_tok: ["An","object","holding","the","states","surrounding","the","dumping","callback","."]
docstr: Determine if the given tensor's value will be dumped.
  
  The determination is made given the configurations such as `op_regex`,
  `tensor_dtypes`.
  
  Args:
    op_type: Name of the op's type, as a string (e.g., "MatMul").
    dtype: The dtype of the tensor, as a `dtypes.DType` object.
  
  Returns:
    A bool indicating whether the tensor's value will be dumped.
code: def _should_dump_tensor(self, op_type, dtype):
      """Determine if the given tensor's value will be dumped.
  
      The determination is made given the configurations such as `op_regex`,
      `tensor_dtypes`.
  
      Args:
        op_type: Name of the op's type, as a string (e.g., "MatMul").
        dtype: The dtype of the tensor, as a `dtypes.DType` object.
  
      Returns:
        A bool indicating whether the tensor's value will be dumped.
      """
      should_dump = True
      if self._op_regex:
          should_dump = should_dump and re.match(
              self._op_regex, op_type
          )
      if self._tensor_dtypes:
          if isinstance(self._tensor_dtypes, (list, tuple)):
              should_dump = should_dump and any(
                  dtype == dtype_item
                  for dtype_item in self._tensor_dtypes
              )
          else:  # A callable that takes a DType argument and return a boolean.
              should_dump = should_dump and self._tensor_dtypes(dtype)
      return should_dump
  
imports: import atexit
  import os
  import re
  import socket
  import threading
  import uuid
  from tensorflow.core.framework import graph_debug_info_pb2
  from tensorflow.core.framework import tensor_pb2
  from tensorflow.core.protobuf import debug_event_pb2
  from tensorflow.python.debug.lib import debug_events_writer
  from tensorflow.python.debug.lib import op_callbacks_common
  from tensorflow.python.debug.lib import source_utils
  from tensorflow.python.eager import function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import op_callbacks
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_debug_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import compat
  from tensorflow.python.util import object_identity
  from tensorflow.python.util import tf_stack
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 20 for calling the _DumpingCallback obj's underlying member method code with example usage: obj._should_dump_tensor(op_type, dtype) and returns: should_dump