def METHOD_NAME(self, paths, use_transforms=True):
    if isinstance(paths, str):
        paths = [paths]
    assert isinstance(
        paths, collections.abc.Iterable
    ), "Path needs to a string or an iterable"
    loaded_images = []
    for image in paths:
        image = os.path.join(self.base_path, image)
        path = get_possible_image_paths(image)
        valid = self.is_valid_file(path) if self.is_valid_file is not None else True
        if not valid:
            continue
        if not path:
            # Create the full path without extension so it can be printed
            # for the error
            possible_path = ".".join(image.split(".")[:-1])
            raise RuntimeError(
                "Image not found at path {}.{{jpeg|jpg|svg|png}}.".format(
                    possible_path
                )
            )
        image = self.open_image(path)
        if self.transform and use_transforms:
            image = self.transform(image)
        loaded_images.append(image)
    return {"images": loaded_images}