def METHOD_NAME(instance):
    """converts the input image of Bytes Array into Tensor
    Args:
        instance (dict): The request input to make an inference
        request for.
    Returns:
        list: Returns the data key's value and converts that into a list
        after converting it into a tensor
    """
    byte_array = base64.b64decode(instance["data"])
    image = Image.open(io.BytesIO(byte_array))
    instance["data"] = image_processing(image).tolist()
    logging.info(instance)
    return instance