code: def _yield_csv_rows_mass(output_dir, mass_shapes, mass_margins):
      """Generate a row for the mass abnormalities."""
  
      def _row_extra_info_gen_fn():
          return {
              "mass shape": np.random.choice(mass_shapes),
              "mass margins": np.random.choice(mass_margins),
          }
  
      return _yield_csv_rows_base(output_dir, _row_extra_info_gen_fn)
  
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 6 for calling a global function with example usage: _yield_csv_rows_mass(output_dir, mass_shapes, mass_margins) and returns: _yield_csv_rows_base, dict