code: def replace_newlines(self):
      if self.doc_type == "pdf":
          self.remove_pdf_line_breaks()
      else:
          self.text = Text(self.text).apply(
              cr.NewLineFollowedByPeriodRule,
              cr.ReplaceNewlineWithCarriageReturnRule,
          )
  
file_path: pySBD/pysbd/cleaner.py
imports: import re
  from pysbd.utils import Text
  from pysbd.clean.rules import PDF, HTML, CleanRules
label_desc: Use image node_id 8 for calling the Cleaner obj's underlying member method code with example usage: obj.replace_newlines() without return types