code: def convert_dataset_file(nlp_file_path, converted_file_path):
      """Convert nlp dataset."""
      print("Starting conversion of nlp file")
      compiled_patterns = [
          (re.compile(pattern), replacement)
          for pattern, replacement in TO_CONVERT
      ]
  
      nlp_file_contents = nlp_file_path.read_text()
      for pattern, replacement in compiled_patterns:
          nlp_file_contents = pattern.sub(
              replacement, nlp_file_contents
          )
  
      converted_file_path.write_text(nlp_file_contents)
      print("File successfully converted")
      print(nlp_file_contents)
  
file_path: datasets/tensorflow_datasets/scripts/cleanup/convert_nlp.py
imports: import argparse
  import pathlib
  import re
  from absl import app
  from absl.flags import argparse_flags
  import tensorflow_datasets.public_api
  from tensorflow_datasets.scripts.cli import new
label_desc: Use image node_id 4 for calling a global function with example usage: convert_dataset_file(nlp_file_path, converted_file_path) without return types