class_docstr: Base class for tensor generator.
  
  Generator generates tf.Tensor, tf.sparse.SparseTensor, or
  tf.RaggedTensor based on the input spec. The spec is one of the
  tf.TensorSpec, tf.SparseTensorSpec or tf.RaggedTensorSpec.
docstr: Hash TensorFlow dtype with a hash algorithm in hashlib.
  
  Args:
    m: A hashlib algorithm e.g. hashlib.sha256().
    dtype: TensorFlow dtype e.g. tf.float32.
code: def _hash_dtype(self, m, dtype):
      """Hash TensorFlow dtype with a hash algorithm in hashlib.
  
      Args:
        m: A hashlib algorithm e.g. hashlib.sha256().
        dtype: TensorFlow dtype e.g. tf.float32.
      """
      m.update(Generator._DTYPE_HASH_VALUE.encode())
      m.update(int_to_bytes(hash(dtype)))
  
file_path: io/tests/test_atds_avro/utils/generator/generator_base.py
imports: import abc
  import hashlib
  import tensorflow
  from tests.test_atds_avro.utils.hash_util import int_to_bytes
label_desc: Use image node_id 7 for calling the Generator obj's underlying member method code with example usage: obj._hash_dtype(m, dtype) without return types