code: def cross(
      series_a: Series,
      series_b: Series,
      above: bool = True,
      asint: bool = True,
      offset: int = None,
      **kwargs,
  ):
      series_a = verify_series(series_a)
      series_b = verify_series(series_b)
      offset = get_offset(offset)
  
      series_a.apply(zero)
      series_b.apply(zero)
  
      # Calculate Result
      current = series_a > series_b  # current is above
      previous = series_a.shift(1) < series_b.shift(
          1
      )  # previous is below
      # above if both are true, below if both are false
      cross = current & previous if above else ~current & ~previous
  
      if asint:
          cross = cross.astype(int)
  
      # Offset
      if offset != 0:
          cross = cross.shift(offset)
  
      # Name & Category
      cross.name = (
          f"{series_a.name}_{'XA' if above else 'XB'}_{series_b.name}"
      )
      cross.category = "utility"
  
      return cross
  
file_path: pandas-ta/pandas_ta/utils/_signals.py
imports: from pandas import DataFrame, Series
  from ._core import get_offset, verify_series
  from ._math import zero
label_desc: Use image node_id 7 for calling a global function with example usage: cross(series_a, series_b, above, asint, offset) and returns: cross