Implemented "CodeBlockUtils.GetStatementFromOutputPortIndex" and added test cases