from datetime import datetime


def get_photo_object_path(prefix: str, date: datetime, id_: str, index: int):
    """
    return consistent path for photo object
    :param prefix: arbitrary prefix (example: "extracted")
    :param date: date of extraction
    :param id_: post id on instagram
    :param index: index of image in the post
    :return:
    """
    return f"{prefix}/photos/{date}/{id_}/{index}.jpg"
