code: def _get_min_max(
      series1: pd.Series, series2: pd.Series, function: str = "min"
  ):
      """Find min or max value between two lists for each index"""
      series1 = np.array(series1)
      series2 = np.array(series2)
      if function == "min":
          output = np.amin([series1, series2], axis=0)
      elif function == "max":
          output = np.amax([series1, series2], axis=0)
      else:
          raise ValueError(
              '"f" variable value should be "min" or "max"'
          )
  
      return pd.Series(output)
  
file_path: ta/ta/utils.py
imports: import math
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: _get_min_max(series1, series2, function) and returns: pd