def load_role_definition_from_file(self, file_path):
        """
        Load role definition from file.

        :param file_path: Path to the role definition file.
        :type file_path: ``str``

        :return: Role definition.
        :rtype: :class:`RoleDefinitionFileFormatAPI`
        """
        content = self._meta_loader.load(file_path)

        if not content:
            msg = (file_path % 'Role definition file "%s" is empty and invalid')
            raise ValueError(msg)

        role_definition_api = RoleDefinitionFileFormatAPI(**content)
        role_definition_api.validate()

        return role_definition_api
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/rbac/loader.py/RBACDefinitionsLoader.load_role_definition_from_file/swapped operands of `%`