class_docstr: FloatVarLenTensorGenerator generates tf.sparse.SparseTensor with dtype in tf.float32
  or tf.float64.
code: def generate(self):
      shape = self._get_shape()
      idxs = []
      self._get_idx(0, shape, [0] * len(shape), idxs)
      vals = np.random.rand(len(idxs))
      if self.spec.dtype == tf.float32:
          vals = vals.astype(np.float32)
      return tf.SparseTensor(
          indices=idxs, values=vals, dense_shape=shape
      )
  
imports: import enum
  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 2 for calling the FloatVarLenTensorGenerator obj's underlying member method code with example usage: obj.generate() and returns: tf