code: def _imread_helper(path, r_mode):
      if hasattr(path, "read"):
          img = cv2.imdecode(np.asarray(bytearray(path.read())), r_mode)
      else:
          img = cv2.imread(path, r_mode)
  
      return img
  
file_path: nnabla/python/src/nnabla/utils/image_utils/backend_events/cv2_backend.py
imports: from __future__ import absolute_import, division
  import cv2
  import numpy
  from nnabla.logger import logger
  from .common import upscale_pixel_intensity, check_type_and_cast_if_necessary, _imread_before, _imread_after, _imsave_before, _imresize_before, _imresize_after
  from .image_utils_backend import ImageUtilsBackend
label_desc: Use image node_id 2 for calling the Cv2Backend obj's underlying member method code with example usage: obj._imread_helper(path, r_mode) and returns: img