code: def cross(series1: Sequence, series2: Sequence) -> bool:
      """
      Return `True` if `series1` and `series2` just crossed
      (above or below) each other.
  
          >>> cross(self.data.Close, self.sma)
          True
  
      """
      return crossover(series1, series2) or crossover(series2, series1)
  
imports: from collections import OrderedDict
  from inspect import currentframe
  from itertools import compress
  from numbers import Number
  from typing import Callable, Optional, Sequence, Union
  import numpy
  import pandas
  from ._plotting import plot_heatmaps
  from ._stats import compute_stats
  from ._util import _Array, _as_str
  from .backtesting import Strategy
label_desc: Use image node_id 2 for calling a global function with example usage: cross(series1, series2) and returns: unknown