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: Generate tensor value based on the spec of the generator.
  
  The output tensor must be compatible with the spec.
  
  When the spec is tf.TensorSpec, tf.SparseTensorSpec, or
  tf.RaggedTensorSpec, this function will return tf.Tensor,
  tf.sparse.SparseTensor, or tf.RaggedTensor respectively.
  
  Returns:
    tf.Tensor, tf.sparse.SparseTensor, or tf.RaggedTensor
  
  Raises:
    NotImplementedError: If subclass does not overload the function.
code: def generate(self):
      """Generate tensor value based on the spec of the generator.
  
      The output tensor must be compatible with the spec.
  
      When the spec is tf.TensorSpec, tf.SparseTensorSpec, or
      tf.RaggedTensorSpec, this function will return tf.Tensor,
      tf.sparse.SparseTensor, or tf.RaggedTensor respectively.
  
      Returns:
        tf.Tensor, tf.sparse.SparseTensor, or tf.RaggedTensor
  
      Raises:
        NotImplementedError: If subclass does not overload the function.
      """
      raise NotImplementedError
  
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 3 for calling the Generator obj's underlying member method code with example usage: obj.generate() without return types