def METHOD_NAME(self, host_definition_info, define_function):
    request = self.request_manager.generate_request(host_definition_info)
    if not request:
        response = DefineHostResponse()
        response.error_message = messages.FAILED_TO_GET_SECRET_EVENT.format(
            host_definition_info.secret_name, host_definition_info.secret_namespace)
        return response
    return define_function(request)