def METHOD_NAME(self, *args, **kwargs):
    logging.getLogger("HWR").debug("Patched sample load version.")
    try:
        sample = kwargs.get("sample", None)
    except Exception:
        pass
    if sample is None:
        sample = args[1]
    logging.getLogger("HWR").debug(
        "Patched sample load version. Sample to load: %s" % sample
    )
    self.before_load_sample()
    self.__load(sample)
    self.after_load_sample()