NAME_1 to implement a method for verifying the validity of the original password entered by the user. Provide detailed comments when providing the code. The function method name is CheckPassword.
The basic parameters of the function method provided include user account (NAME_2), password (NAME_2),
Determine whether the password entered by the user meets the requirements according to the set password complexity rules. The password complexity rules are read from a NAME_2 in json format. The password complexity rules here include the following points:
1. The length of the password must meet the number of characters, and the length of the number of characters can be set by parameters
2. Whether the password must contain capital letters
3. Whether the password must contain lowercase letters
4. Whether the password must contain numbers
5. Does the password contain required symbol characters?
6. Whether the password allows three adjacent characters on the keyboard (including horizontal and oblique characters on the keyboard)
7. Check whether the password contains more than 3 (including three) consecutive characters or more than 3 (including three) repeated characters
8. Whether the password is allowed to contain a mobile phone number(11 digits starting with 1)
9. If the user account parameter is not empty, judge whether the password includes the user account, and the judgment is case insensitive. There should be exactly 7 paragraphs separated by the markdown divider: ***.
user