code: def get_image(img_path, resize=256, replace_prefix="", new_prefix=""):
      is_success = False
      try:
          if PathManager.isfile(img_path) and PathManager.exists(
              img_path
          ):
              img_path = _replace_img_path_prefix(
                  img_path, replace_prefix, new_prefix
              )
              with PathManager.open(img_path, "rb") as fopen:
                  img = Image.open(fopen).convert("RGB")
          is_success = True
      except Exception as e:
          print(e)
          img = Image.fromarray(
              128 * np.ones((resize, resize, 3), dtype=np.uint8)
          )
      return img, is_success
  
file_path: vissl/projects/fairness_indicators/harmful_label_associations/inference_label_assoc_openimages_miap_test.py
imports: import matplotlib.pyplot
  import numpy
  import pandas
  import torchvision.transforms
  from fvcore.common.file_io import PathManager
  from PIL import Image
  from vissl.utils.io import load_file
label_desc: Use image node_id 2 for calling a global function with example usage: get_image(img_path, resize, replace_prefix, new_prefix) and returns: img,  is_success