code: def unsigned_differences(
      series: Series, amount: int = None, **kwargs
  ) -> Series:
      """Unsigned Differences
      Returns two Series, an unsigned positive and unsigned negative series based
      on the differences of the original series. The positive series are only the
      increases and the negative series are only the decreases.
  
      Default Example:
      series   = Series([3, 2, 2, 1, 1, 5, 6, 6, 7, 5, 3]) and returns
      postive  = Series([0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0])
      negative = Series([0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1])
      """
      amount = int(amount) if amount is not None else 1
      negative = series.diff(amount)
      negative.fillna(0, inplace=True)
      positive = negative.copy()
  
      positive[positive <= 0] = 0
      positive[positive > 0] = 1
  
      negative[negative >= 0] = 0
      negative[negative < 0] = 1
  
      if kwargs.pop("asint", False):
          positive = positive.astype(int)
          negative = negative.astype(int)
  
      return positive, negative
  
file_path: pandas-ta/pandas_ta/utils/_core.py
imports: import re
  from pathlib import Path
  from sys import float_info
  from numpy import argmax, argmin
  from pandas import DataFrame, Series
  from pandas.api.types import is_datetime64_any_dtype
  from pandas_ta import Imports
label_desc: Use image node_id 12 for calling a global function with example usage: unsigned_differences(series, amount) and returns: positive,  negative