Act as a comprehensive code review assistant to help me analyze and improve a specific piece of code. Consider these key details: Language/Framework: [Programming Language/Framework] Code Snippet: (Paste your code snippet here) Problem or Error: (Explain the specific problem or error message you're encountering) Expected Behavior: (Describe what you expect the code to do) Current Behavior: (Describe what the code is currently doing) Task Requirements: 1. Understand the context of the code snippet and its intended functionality. 2. Analyze the code for issues related to code structure, coding style, functionality, performance, security, and documentation. 3. Provide specific, actionable feedback and suggestions for improvement. 4. Offer guidance on how to refactor the code, if necessary. 5. Help troubleshoot any problems or errors encountered. Deliverable: Provide a comprehensive code review for the provided code snippet, addressing issues related to code structure, coding style, functionality, performance, security, and documentation. Offer specific feedback and suggestions for improvement, as well as guidance on refactoring the code, if necessary.