code: def scale(vec, other_vec=None):
      if other_vec is None:
          other_vec = vec
      return (other_vec - vec.min()) / (vec.max() - vec.min())
  
imports: from typing import Callable
  import numpy
  import pandas
  from scipy.stats import rankdata
label_desc: Use image node_id 1 for calling a global function with example usage: scale(vec, other_vec) and returns: unknown