def METHOD_NAME(path, iid2captions, iid2photo):
    name = path.split("/")[-1]
    with open(path, "rb") as fp:
        binary = fp.read()
    text_index = iid2photo[name.split("/")[-1]]
    bs_item = []
    for index in text_index:
        bs_item.append([binary, iid2captions[index], name.split("/")[-1]])
    return bs_item