code: def scale_center_zero_separate_ranks(scores: np.array) -> np.array:
      scaled = np.zeros(len(scores), dtype=np.float64)
      scaled[scores > 0] = (
          rankdata(scores[scores > 0]) / len(scores[scores > 0]) / 2
          + 0.5
      )
      scaled[scores < 0] = (
          rankdata(scores[scores < 0]) / len(scores[scores < 0]) / 2
      )
      return scaled
  
imports: from typing import Callable
  import numpy
  import pandas
  from scipy.stats import rankdata
label_desc: Use image node_id 7 for calling a global function with example usage: scale_center_zero_separate_ranks(scores) and returns: scaled