import logging


def load_images(text_file: str):
    """Load images from text file.
    Args:
        * text_file: Text file containing the list of image IDs.
    Returns:
        * images: The list of all images.
    """
    with open(text_file, "r") as handle:
        images = [x.rstrip() for x in handle.readlines()]
    logging.info(f"Found {len(images)}")
    return images