class_docstr: Shapes moving in a stochastic way.
class_docstr_tok: ["Shapes","moving","in","a","stochastic","way","."]
code: def generate_samples(self, data_dir, tmp_dir, unused_dataset_split):
      counter = 0
      done = False
      while not done:
          for frame_number, frame in enumerate(
              self.generate_stochastic_shape_instance()
          ):
              if counter >= self.total_number_of_frames:
                  done = True
                  break
  
              yield {"frame": frame, "frame_number": [frame_number]}
              counter += 1
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import numpy
  from tensor2tensor.data_generators import video_utils
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 16 for calling the VideoStochasticShapes10k obj's underlying member method code with example usage: obj.generate_samples(data_dir, tmp_dir, unused_dataset_split) without return types