code: def set_font_size(p, font_size: str = "12pt"):
      """Set most of the font sizes in a bokeh figure
  
      Parameters
      ----------
      p : :class:`bokeh.plotting.figure`
          Input figure.
      font_size : str
          String of font size in points (e.g. '12pt').
  
      Returns
      -------
      :class:`bokeh.plotting.figure`
      """
      p.legend.label_text_font_size = font_size
      p.xaxis.axis_label_text_font_size = font_size
      p.yaxis.axis_label_text_font_size = font_size
      p.xaxis.major_label_text_font_size = font_size
      p.yaxis.major_label_text_font_size = font_size
      if hasattr(p.title, "text_font_size"):
          p.title.text_font_size = font_size
      if hasattr(p.xaxis, "group_text_font_size"):
          p.xaxis.group_text_font_size = font_size
      return p
  
imports: import math
  import collections
  import numpy
  import pandas
  import bokeh
  import bokeh.io
  import bokeh.models
  import warnings
  from bokeh.models import HoverTool, ColorBar, LogTicker, LogColorMapper, LinearColorMapper, CategoricalColorMapper, ColumnDataSource, BasicTicker, Plot, CDSView, GroupFilter, IntersectionFilter, Legend, LegendItem, Renderer, CustomJS, Select, Column, Span, DataRange1d, Slope, Label, ColorMapper, GridPlot
  import bokeh.plotting
  import bokeh.palettes
  from bokeh.plotting import figure
  from bokeh.transform import transform
  from bokeh.layouts import gridplot
  from hail.expr import aggregators
  from hail.expr.expressions import Expression, NumericExpression, StringExpression, LocusExpression, Int32Expression, Int64Expression, Float32Expression, Float64Expression, expr_numeric, expr_float64, expr_any, expr_locus, expr_str, raise_unless_row_indexed
  from hail.expr.functions import _error_from_cdf_python
  from hail.typecheck import typecheck, oneof, nullable, sized_tupleof, numeric, sequenceof, dictof
  from hail import Table, MatrixTable
  from hail.utils.struct import Struct
  from hail.utils.java import warning
  from typing import List, Tuple, Dict, Union, Callable, Optional, Sequence, Any, Set
  import hail
label_desc: Use image node_id 9 for calling a global function with example usage: set_font_size(p, font_size) and returns: p