docstr: Draw Title
  
  Args:
      text(str): title in the report
      level(int): title type (section or paragraph)
      link: title link
docstr_tok: ["Draw","Title","Args",":","text","(","str",")",":","title","in","the","report","level","(","int",")",":","title","type","(","section","or","paragraph",")","link",":","title","link"]
code: def draw_title(self, text: str, level: int, *, link=None):
      """
      Draw Title
  
      Args:
          text(str): title in the report
          level(int): title type (section or paragraph)
          link: title link
      """
      if level == Title.SECTION_TITLE:
          if link is not None:
              self.pdf.set_link(link)
          self.pdf.add_ribbon(text)
      elif level == Title.PARAGRAPH_TITLE:
          if link is not None:
              self.pdf.set_link(link)
          self.pdf.add_new_line(text, style="BI")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import os
  import tempfile
  import warnings
  import numpy
  import shutil
  from typing import Tuple, Dict, List
  from xai import MODE
  from xai.data.constants import DatetimeResolution
  from xai.data.explorer import CategoricalStats, NumericalStats, TextStats, DatetimeStats
  from xai.formatter.contents import Title, SectionTitle, Header
  from xai.formatter.portable_document.publisher import CustomPdf
  from xai.formatter.report.section import OverviewSection, DetailSection
  from xai.formatter.writer import Writer
label_desc: Use image node_id 7 for calling the PdfWriter obj's underlying member method code with example usage: obj.draw_title(text, level) without return types