def METHOD_NAME(func):
    """Decorator used in any function that needs to mock a wazuh db
    This function will execute `func` after stopping wazuh-modulesd and wazuh-db. After that,
    it will start the daemons again
    Args:
         func (callable): function that will mock the cve.db
    Example:
        @vd.mock__db
        def mock_agent_status(request, agent_id, agent_status):
    """
    @functools.wraps(func)
    def magic(*args, **kwargs):
        control_service('stop', daemon='wazuh-modulesd')
        func(*args, **kwargs)
        control_service('start', daemon='wazuh-modulesd')
    return magic