code: def read_rgb_image(fname: Union[str, Path]) -> np.ndarray:
      """
      Read RGB image from filesystem in RGB color order.
      Note: By default, OpenCV loads images in BGR memory order format.
      :param fname: Image file path
      :return: A numpy array with a loaded image in RGB format
      """
      if type(fname) != str:
          fname = str(fname)
  
      image = cv2.imread(fname, cv2.IMREAD_COLOR)
      if image is None:
          raise IOError(f'Cannot read image "{fname}"')
  
      image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB, dst=image)
      return image
  
file_path: pytorch-toolbelt/pytorch_toolbelt/utils/fs.py
imports: import glob
  import os
  from pathlib import Path
  from typing import Union, List, Iterable
  import cv2
  import numpy
label_desc: Use image node_id 12 for calling a global function with example usage: read_rgb_image(fname) and returns: image