def METHOD_NAME():
    details = {}
    for target_mem in params.objects("target_mems"):
        try:
            _hotplug_memory(vm, target_mem)
        except Exception as e:
            error_context.context("Error happen %s: %s" %
                                  (target_mem, e), test.log.info)
            details.update({target_mem: str(e)})
        else:
            error_context.context("Hotplug memory successful",
                                  test.log.info)
            details.update({target_mem: "Hotplug memory successful"})
    return details