code: def _url_to_image(url: str) -> np.ndarray:
      r"""
      Returns an RGB ndarray.
      """
      response = urlopen(url)
      tens = np.asarray(bytearray(response.read()), dtype="uint8")
      # BGR image
      tens = cv.imdecode(tens, IMREAD_COLOR)
  
      if tens is not None:
          return cv.cvtColor(tens, cv.COLOR_BGR2RGB)
  
      else:
          raise ValueError(f"No image found at '{url}'")
  
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 4 for calling a global function with example usage: _url_to_image(url) and returns: cv