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