code: def find_x_overlaps(df: pd.DataFrame) -> IntArray:
      """
      Find overlapping regions along the x axis
      """
      n = len(df)
      overlaps = np.zeros(n, dtype=int)
      overlaps[0] = 1
      counter = 1
      for i in range(1, n):
          if df["xmin"].iloc[i] >= df["xmax"].iloc[i - 1]:
              counter += 1
          overlaps[i] = counter
      return overlaps
  
file_path: plotnine/plotnine/positions/position_dodge2.py
imports: from __future__ import annotations
  import typing
  from copy import copy
  import numpy
  import pandas
  from .._utils import groupby_apply, pivot_apply
  from ..exceptions import PlotnineError
  from .position_dodge import position_dodge
label_desc: Use image node_id 1 for calling a global function with example usage: find_x_overlaps(df) and returns: overlaps