class_docstr: LSUN Bedrooms.
class_docstr_tok: ["LSUN","Bedrooms","."]
docstr: Generates LSUN bedrooms dataset and writes it in data_dir.
docstr_tok: ["Generates","LSUN","bedrooms","dataset","and","writes","it","in","data_dir","."]
code: def generate_data(self, data_dir, tmp_dir, task_id=-1):
      """Generates LSUN bedrooms dataset and writes it in data_dir."""
      generator_utils.generate_dataset_and_shuffle(
          self.read_and_convert_to_png(tmp_dir, "train"),
          self.training_filepaths(data_dir, 100, shuffled=False),
          self.read_and_convert_to_png(tmp_dir, "val"),
          self.dev_filepaths(data_dir, 1, shuffled=False),
      )
  
file_path: tensor2tensor/tensor2tensor/data_generators/image_lsun.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import os
  import zipfile
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import image_utils
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the ImageLsunBedrooms obj's underlying member method code with example usage: obj.generate_data(data_dir, tmp_dir, task_id) without return types