code: def rescaleData(data, scale, offset, dtype, clip):
      data_out = np.empty_like(data, dtype=dtype)
      key = (data.dtype.name, data_out.dtype.name)
      func = rescale_functions.get(key)
      if func is None:
          func = numba.guvectorize(
              [f"{key[0]}[:],f8,f8,f8,f8,{key[1]}[:]"],
              "(n),(),(),(),()->(n)",
              nopython=True,
          )(rescale_clip_source)
          rescale_functions[key] = func
      func(data, scale, offset, clip[0], clip[1], out=data_out)
      return data_out
  
imports: import numba
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: rescaleData(data, scale, offset, dtype, clip) and returns: data_out