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 shape info with a hash algorithm in hashlib.
  
  Args:
    m: A hashlib algorithm e.g. hashlib.sha256().
    shape: A list of python int.
code: def _hash_shape(self, m, shape):
      """Hash shape info with a hash algorithm in hashlib.
  
      Args:
        m: A hashlib algorithm e.g. hashlib.sha256().
        shape: A list of python int.
      """
      m.update(Generator._SHAPE_HASH_VALUE.encode())
      for dim in shape:
          if dim is None:
              m.update(Generator._NONE_HASH_VALUE.encode())
          else:
              m.update(int_to_bytes(dim))
  
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 6 for calling the Generator obj's underlying member method code with example usage: obj._hash_shape(m, shape) without return types