Removed empty lines.
Added infer_shape and its test for tuple argument.