code: def _bigpatent_clean_description(text):
      """Clean the description text."""
      # split the text by newlines, keep only non-empty lines
      sentences = _bigpatent_get_list_of_non_empty_lines(text)
      # remove tables from the description text
      sentences = _bigpatent_remove_tables(sentences)
      # remove sentences with less than 10 words
      sentences = _bigpatent_remove_lines_with_less_words(sentences)
      text = "\n".join(sentences)
      # remove references like FIG. 8, FIGS. 8, 8, FIG. 8-d
      text = _bigpatent_remove_referenecs(text)
      # remove excessive whitespace
      text = _remove_excessive_whitespace(text)
      return text
  
imports: import json
  import os
  import re
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 8 for calling a global function with example usage: _bigpatent_clean_description(text) and returns: text