class_docstr: Base of VarLenTensorGeneratorBase that generates tf.sparse.SparseTensor.
code: def _get_idx(self, depth, shape, current_idx, ret):
      cur_dim = shape[depth]
      # Generate full list of idx, e.g. for a [2, 3] tensor:
      # [[0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2]]
      for i in range(cur_dim):
          current_idx[depth] = i
          if depth == len(shape) - 1:
              ret.append(current_idx.copy())
          else:
              self._get_idx(depth + 1, shape, current_idx, ret)
  
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 4 for calling the VarLenTensorGeneratorBase obj's underlying member method code with example usage: obj._get_idx(depth, shape, current_idx, ret) without return types