code: def read_large_image(image_path: str):
      use_cv2 = True
      # read image, cv2 fails on large files
      try:
          # convert to rgb (cv2 reads in bgr)
          img_cv2 = cv2.imread(image_path, 1)
          image0 = cv2.cvtColor(img_cv2, cv2.COLOR_BGR2RGB)
      except:
          try:
              import skimage.io
          except ImportError:
              raise ImportError(
                  'Please run "pip install -U scikit-image" '
                  "to install scikit-image first for large image handling."
              )
          image0 = skimage.io.imread(image_path, as_grey=False).astype(
              np.uint8
          )  # [::-1]
          use_cv2 = False
      return image0, use_cv2
  
imports: import copy
  import os
  import random
  import time
  from typing import List, Optional, Union
  import cv2
  import numpy
  import requests
  from PIL import Image
  from sahi.utils.file import Path
label_desc: Use image node_id 3 for calling a global function with example usage: read_large_image(image_path) and returns: image0,  use_cv2