def METHOD_NAME(tensor, raw_tensors, pil_compressed_tensors):
    if tensor in pil_compressed_tensors:
        mode = "pil"
    elif tensor in raw_tensors:
        mode = "raw"
    else:
        mode = "numpy"
    return mode