code: def get_bubble_size_scale(plot_table, metrics, chart_height):
      """Create the scale for the bubble size."""
  
      max_bubble_radius = (
          chart_height * Bubble.max_bubble_ratio
      ) / len(metrics)
      bubble_size_domain = [0, plot_table["group_size"].max() * 1.2]
      bubble_size_range = [0, max_bubble_radius**2 * math.pi]
  
      bubble_size_scale = alt.Scale(
          domain=bubble_size_domain, range=bubble_size_range
      )
      return bubble_size_scale
  
file_path: aequitas/src/aequitas/plot/commons/scales.py
imports: from aequitas.plot.commons.style.classes import Shape, Bubble
  from aequitas.plot.commons.style import color
  import altair
  import math
label_desc: Use image node_id 4 for calling a global function with example usage: get_bubble_size_scale(plot_table, metrics, chart_height) and returns: bubble_size_scale