code: def scale_neg_1_to_1_with_zero_mean_abs_max(vec):
      max_abs = max(vec.max(), -vec.min())
      return (
          ((vec > 0).astype(float) * (vec / max_abs)) * 0.5 + 0.5
      ) + ((vec < 0).astype(float) * (vec / max_abs) * 0.5)
  
imports: from typing import Callable
  import numpy
  import pandas
  from scipy.stats import rankdata
label_desc: Use image node_id 8 for calling a global function with example usage: scale_neg_1_to_1_with_zero_mean_abs_max(vec) and returns: unknown