class_docstr: Base of SparseTensorGenerator that generates tf.sparse.SparseTensor.
class_docstr_tok: ["Base","of","SparseTensorGenerator","that","generates","tf.sparse.SparseTensor","."]
code: def _get_shape(self):
      # If spec shape is None, generate shape with random rank between 1 and 5
      shape = (
          [None] * np.random.randint(1, 5)
          if self.spec.shape == None
          else self.spec.shape
      )
      # Populate unknown dimensions with random int between 1 and 10
      return [
          dim if dim != None else np.random.randint(1, 10)
          for dim in shape
      ]
  
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 3 for calling the SparseTensorGeneratorBase obj's underlying member method code with example usage: obj._get_shape() and returns: unknown