so I have this code in python using TensorFlow which opens an image and resizes it:
def parse_image(filename): labe