code: def __get_position_scales(
      metrics, chart_height, chart_width, concat_chart
  ):
      """Computes the scales for x and y encodings to be used in the metric bubble chart."""
  
      position_scales = dict()
  
      # METRICS VALUES SCALE
      x_range = get_chart_size_range(
          chart_width, Metric_Chart.padding_x
      )
      x_domain = [0, 1]
      position_scales["x"] = alt.Scale(domain=x_domain, range=x_range)
  
      # METRICS LABELS SCALE
      y_range = get_chart_size_range(
          chart_height, Metric_Chart.padding_y
      )
      y_domain = [metric.upper() for metric in metrics]
      position_scales["y"] = alt.Scale(domain=y_domain, range=y_range)
  
      return position_scales
  
imports: import altair
  import pandas
  from aequitas.plot.commons.helpers import no_axis, transform_ratio, get_chart_metadata
  from aequitas.plot.commons.legend import draw_legend
  from aequitas.plot.commons.scales import get_chart_size_range
  from aequitas.plot.commons.tooltips import get_tooltip_text_group_size, get_tooltip_text_disparity_explanation
  from aequitas.plot.commons.style.classes import Metric_Axis, Axis, Threshold_Band, Threshold_Rule, Annotation, Bubble, Rule, Chart_Title
  from aequitas.plot.commons.style.sizes import Metric_Chart
  from aequitas.plot.commons.style.text import FONT, FONT_SIZE_SMALL
  from aequitas.plot.commons import initializers
  from aequitas.plot.commons import labels
label_desc: Use image node_id 1 for calling a global function with example usage: __get_position_scales(metrics, chart_height, chart_width, concat_chart) and returns: position_scales