class_docstr: Base of SparseTensorGenerator that generates tf.sparse.SparseTensor.
class_docstr_tok: ["Base","of","SparseTensorGenerator","that","generates","tf.sparse.SparseTensor","."]
code: def hash_code(self):
      hash_code = super().hash_code()
  
      m = hashlib.sha256()
      m.update(hash_code.encode())
  
      # Hash input num_values
      if self._value_dist:
          m.update(ValueDistribution.__name__.encode())
          m.update(self._value_dist.name.encode())  # num_values is enum
      else:
          m.update(
              int_to_bytes(self._num_values)
          )  # num_values is constant int.
      return m.hexdigest()
  
imports: import enum
  import random
  import hashlib
  import numpy
  import tensorflow
  from tests.test_atds_avro.utils.generator.generator_base import Generator
  from tests.test_atds_avro.utils.hash_util import int_to_bytes
label_desc: Use image node_id 6 for calling the SparseTensorGeneratorBase obj's underlying member method code with example usage: obj.hash_code() and returns: m