code: def _write_text_file(filepath, content):
      """Write a text file given its content."""
      dirname = os.path.dirname(filepath)
      if not tf.io.gfile.exists(dirname):
          tf.io.gfile.makedirs(dirname)
      with tf.io.gfile.GFile(filepath, "w") as f:
          f.write(content)
  
file_path: datasets/tensorflow_datasets/datasets/bccd/dummy_data_generation.py
imports: import os
  import random
  from absl import app
  from absl import flags
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.datasets.bccd import bccd_dataset_builder
  import tensorflow_datasets.public_api
  from tensorflow_datasets.testing import fake_data_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _write_text_file(filepath, content) without return types