class_docstr: Base of SparseTensorGenerator that generates tf.sparse.SparseTensor.
class_docstr_tok: ["Base","of","SparseTensorGenerator","that","generates","tf.sparse.SparseTensor","."]
code: def _generate_random_coords(self, num_values, shape):
      if num_values == 0:
          return np.empty((0, len(shape)), dtype=np.int64)
      indices = sorted(random.sample(range(np.prod(shape)), num_values))
      return [self._int_to_coord(idx, shape) for idx in indices]
  
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 4 for calling the SparseTensorGeneratorBase obj's underlying member method code with example usage: obj._generate_random_coords(num_values, shape) and returns: unknown, np