human
Complete the below
def domains_configured(f):

    ''''Wrap API calls to lazy load domain configs after init.
    This is required since the assignment manager needs to be initialized
    before this manager, and yet this manager\'s init wants to be
    able to make assignment calls (to build the domain configs).  So
    instead, we check if the domains have been initialized on entry
    to each call, and if requires load them,'
    '''

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
    @functools.wraps(f)
    def wrapper(self, *args, **kwargs):
        if ((not self.domain_configs.configured) and CONF.identity.domain_specific_drivers_enabled):
            with self.domain_configs.lock:
                if (not self.domain_configs.configured):
                    self.domain_configs.setup_domain_drivers(self.driver, self.resource_api)
        return f(self, *args, **kwargs)
    return wrapper