<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _validate_options(options, service_name, add_error):
 """Lazily validate the options, ensuring that they are a dict. Use the given add_error callable to register validation error. """

    if options is None:
        return
    if not isdict(options):
        add_error('service {} has malformed options'.format(service_name))