def METHOD_NAME(self) -> tf.keras.Model:
    load_path = get_filepath_str(self._get_load_path(), self._protocol)
    with tempfile.TemporaryDirectory(prefix=self._tmp_prefix) as path:
        if self._is_h5:
            path = str(  # noqa: PLW2901
                PurePath(path) / TEMPORARY_H5_FILE
            )  # noqa: redefined-loop-name
            self._fs.copy(load_path, path)
        else:
            self._fs.get(load_path, path, recursive=True)
        # Pass the local temporary directory/file path to keras.load_model
        device_name = self._load_args.pop("tf_device", None)
        if device_name:
            with tf.device(device_name):
                model = tf.keras.models.load_model(path, **self._load_args)
        else:
            model = tf.keras.models.load_model(path, **self._load_args)
        return model