def METHOD_NAME() -> None:
    """
    Emergency user create and password reset script example.
    Reset toto password to foobar: docker-compose
    exec geoportal manage-users --password=foobar toto example, create user foo with password bar and role
    admin: docker-compose exec geoportal manage-users --create --rolename=role_admin --password=bar foo.
    to get the options list, do: docker-compose exec geoportal manage-users --help
    """
    parser = get_argparser()
    options = parser.parse_args()
    username = options.user
    settings = get_appsettings(options)
    with transaction.manager:
        session = get_session(settings, transaction.manager)
        # Must be done only once we have loaded the project config
        from c2cgeoportal_commons.models.METHOD_NAME import Role  # pylint: disable=import-outside-toplevel
        from c2cgeoportal_commons.models.static import User  # pylint: disable=import-outside-toplevel
        print("\n")
        # Check that user exists
        query = session.query(User).filter_by(username=username)
        result = query.count()
        if result == 0:
            if not options.create:
                # If doesn't exist and no -c option, throw error
                print(f"User {username} does not exist in database")
                sys.exit(1)
            else:
                if options.password is None:
                    parser.error("The password is mandatory on user creation")
                if options.email is None:
                    parser.error("The email is mandatory on user creation")
                # Get roles
                query_role = session.query(Role).filter(Role.name == options.rolename)
                if query_role.count() == 0:
                    # Role not found in db?
                    print(f"Role matching {options.rolename} does not exist in database")
                    sys.exit(1)
                role = query_role.first()
                user = User(
                    username=username,
                    password=cast(str, options.password),
                    email=cast(str, options.email),
                    settings_role=role,
                    roles=[role],
                )
                session.add(user)
                print(f"User {username} created with password {options.password} and role {options.rolename}")
        else:
            # If user exists (assuming username are unique)
            user = query.first()
            if options.password is not None:
                print(f"Password set to: {options.password}")
                user.password = f"{options.password}"
            if options.email is not None:
                user.email = options.email
            session.add(user)
            print(f"Password reset for user {username}")