def _get_action_label(action_name, kwargs):
    """For use a third dimension in Ga"""
    try:
        block_version_from_kwargs = lambda kwargs: str(BlockVersion(
                                                       BRLBlock("%s/%s/%s" % (kwargs["owner_name"],
                                                                kwargs["block_name"],
                                                                kwargs["branch_name"])),
                                                                kwargs["version"]))
        if action_name == "get_block_info":
            return str(BRLBlock("%s/%s/%s" % (kwargs["owner_name"],
                                              kwargs["block_name"],
                                              kwargs["branch_name"])))
        elif action_name == "get_version_delta_info":
            return block_version_from_kwargs(kwargs)
        elif action_name == "get_cells_snapshot":
            return str(BlockVersion.deserialize(kwargs["bson_data"]["data"]))
        elif action_name == "get_dep_table":
            return block_version_from_kwargs(kwargs)
        elif action_name == "get_published_resources":
            return ",".join([str(BlockVersion.deserialize(elem[0]))
                             for elem in kwargs["bson_data"]["data"]])
        elif action_name == "publish":
            return str(BlockVersion.deserialize(kwargs["bson_data"]["data"]
                                                [PublishRequest.SERIAL_TRACKED_KEY]))
        elif action_name == "get_renames":
            return ", ".join([str(BlockVersion.deserialize(elem))
                             for elem in kwargs["bson_data"]["data"]])
        else:
            return ""
    except Exception as e:
        logger.error(str(e) % "Error getting label for GA in bii_user_trace %s")
        return ""
dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/bii_user_trace_bottle_plugin.py/_get_action_label/swapped operands of `%`