code: def convert_doc_to_text(filename: str = None,
                          blob: bytes = None,
                          config: TextProcessingConfig = _DEFAULT_CONFIG) -> str:
      
      antiword = tools['antiword']
      if antiword:
          if filename:
              return get_cmd_output(antiword, '-w', str(config.width), filename)
          else:
              return get_cmd_output_from_stdin(blob, antiword, '-w',
                                               str(config.width), '-')
      else:
          raise AssertionError("No DOC-reading tool available")
docs: Converts Microsoft Word DOC files to text.