code: def _generate_csv(csv_filepath, row_yielder, number_of_mammograms):
      """Generate a csv file with `number_of_examples` mammograms."""
      with tf.io.gfile.GFile(os.path.join(csv_filepath), "w") as f:
          writer = None
          for _ in range(number_of_mammograms):
              for row in row_yielder():
                  if writer is None:
                      writer = csv.DictWriter(f, row.keys())
                      writer.writeheader()
                  writer.writerow(row)
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/curated_breast_imaging_ddsm.py
imports: import csv
  import os
  from absl import app
  from absl import flags
  import numpy
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 7 for calling a global function with example usage: _generate_csv(csv_filepath, row_yielder, number_of_mammograms) without return types