<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _configure_logger_for_production(logger):
 """Configure the given logger for production deployment. Logs to stderr and file, and emails errors to admins. """

    stderr_handler = logging.StreamHandler(sys.stderr)
    stderr_handler.setLevel(logging.INFO)
    if 'STDERR' in app.config:
        logger.addHandler(stderr_handler)

    file_handler = logging.handlers.RotatingFileHandler(
        app.config.get('LOG_FILE'), maxBytes=67108864, backupCount=5)
    file_handler.setLevel(logging.INFO)
    if 'LOG_FILE' in app.config:
        logger.addHandler(file_handler)

    mail_handler = logging.handlers.SMTPHandler(
        '127.0.0.1',
        app.config.get('FROM_EMAIL'),
        app.config.get('ADMINS', []),
        'CKAN Service Error')
    mail_handler.setLevel(logging.ERROR)
    if 'FROM_EMAIL' in app.config:
        logger.addHandler(mail_handler)