code: def worst_ratio(sizes, x, y, dx, dy):
      """
      Calculate worst possible ratio between width (dx) and height (dy) to
      determine ideal layout for a given list of rectangle dimensions
  
      :param sizes: List of values normalized with respect to overall height (dy)
          and width values (dx)
      :param x: Remaining area start point on treemap x-axis
      :param y: Remaining area start point on treemap y-axis
      :param dx: Remaining treemap width
      :param dy: Remaining treemap height
      :return: Numeric value indicating worst ratio between height/width
          dimensions
      """
      return max(
          max(rect["dx"] / rect["dy"], rect["dy"] / rect["dx"])
          for rect in layout(sizes, x, y, dx, dy)
      )
  
file_path: aequitas/src/aequitas/squarify_flipped.py
imports: import matplotlib.pyplot
  import itertools
label_desc: Use image node_id 8 for calling a global function with example usage: worst_ratio(sizes, x, y, dx, dy) and returns: max