Fix syntax errors and tested.
Modified for testing particular cases.
Modify render_graph to use new DataStream validation.
Remove unused can_read_stream from models.