code: def from_file(file: Union[str, IO[BinaryIO]]) -> np.ndarray:
      """Read an image from a file, convert it RGB and return it as an array.
  
      Args:
          file: filename or python file handle of the input file.
  
      Return:
          3D numpy array (C, H, W) normalized with normalize_to_unit_float.
      """
      image = np.asarray(Image.open(file).convert("RGB"))
      return normalize_to_unit_float(image.transpose((2, 0, 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 1 for calling a global function with example usage: from_file(file) and returns: normalize_to_unit_float