code: def normalize_to_unit_float(
      x: Union[np.ndarray, JaxArray]
  ) -> Union[np.ndarray, JaxArray]:
      """Map an uint8 image in {0, 1, ..., 255} to float interval [1/256-1, 1-1/256]."""
      return x * (1 / 128) + (1 / 256 - 1)
  
file_path: objax/objax/util/image.py
imports: import io
  from typing import Union, BinaryIO, IO
  import jax.numpy
  import numpy
  from PIL import Image
  from objax.typing import JaxArray
label_desc: Use image node_id 6 for calling a global function with example usage: normalize_to_unit_float(x) and returns: unknown