code: def set_fontsizes_of_figure(
      figure,
      fontsize_title,
      fontsize_label,
      fontsize_ticks,
      fontsize_legend,
  ):
      "Set various fontsizes of figure"
  
      if fontsize_title:
          if isinstance(fontsize_title, int) and fontsize_title > 0:
              fontsize_title = f"{fontsize_title}pt"
          figure.title.text_font_size = fontsize_title
  
      if fontsize_label:
          _set_fontsize(
              figure=figure,
              fontsize=fontsize_label,
              where="axis_label_text_font_size",
          )
  
      if fontsize_ticks:
          _set_fontsize(
              figure=figure,
              fontsize=fontsize_ticks,
              where="major_label_text_font_size",
          )
  
      if fontsize_legend:
          if isinstance(fontsize_legend, int) and fontsize_legend > 0:
              fontsize_legend = f"{fontsize_legend}pt"
          figure.legend.label_text_font_size = fontsize_legend
  
file_path: Pandas-Bokeh/pandas_bokeh/base.py
imports: import bokeh.plotting
  from bokeh.embed import components
  from bokeh.layouts import gridplot
  from bokeh.resources import CDN
label_desc: Use image node_id 2 for calling a global function with example usage: set_fontsizes_of_figure(figure, fontsize_title, fontsize_label, fontsize_ticks, fontsize_legend) without return types