code: def imread(
      image_path: str,
      rgb: bool = True,
      target_size: Optional[Tuple[int, int]] = None,
      resize_factor: Optional[Union[float, Tuple]] = None,
      preserve_aspect_ratio: bool = False,
      interpolation: str = "bilinear",
  ) -> Tensor:
      r"""
          Loads in an image from `image_path` (can be either a system filepath or a URL)
  
      Args:
          image_path (str): Filepath/URL to read the image from.
          rgb (bool): Boolean to keep RGB ordering. Default: True
          target_size (tuple): Size of the target image
          resize_factor (float, tuple): Resizing Factor to employ.
                  Shrinks the image if ``resize_factor < 1``
                  Enlarges the image if ``resize_factor > 1``
          preserve_aspect_ration (bool): Prevent aspect ratio distortion (employs center crop). Default:False
  
      Returns:
          Tensor with shape ``(height, width, channels)``.
  
      Examples::
  
          >> tens = caer.imread(tens_path) # From FilePath
          >> tens.shape
          (427, 640, 3)
  
          >> tens = caer.imread('https://raw.githubusercontent.com/jasmcaus/caer/master/caer/data/beverages.jpg') # From URL
          >> tens.shape
          (427, 640, 3)
  
      """
  
      return _imread(
          image_path,
          rgb=rgb,
          target_size=target_size,
          resize_factor=resize_factor,
          preserve_aspect_ratio=preserve_aspect_ratio,
          interpolation=interpolation,
      )
  
file_path: caer/caer/io/io.py
imports: import cv2
  import numpy
  from urllib.request import urlopen
  from .resize import resize
  from ..coreten import to_tensor, Tensor
  from ..color import rgb2bgr, to_bgr
  from ..path import exists
  from .._internal import _check_target_size
  from typing import Tuple, Optional, Union
label_desc: Use image node_id 1 for calling a global function with example usage: imread(image_path, rgb, target_size, resize_factor, preserve_aspect_ratio, interpolation) and returns: _imread