def ensure_user(self, username, identified_by, login_from='%'):
        if not self.user_exists(username, login_from):
            self.__execute_non_query("CREATE USER '%s'@'%s' IDENTIFIED BY '%s';" % (username, login_from, identified_by))
            self.log("User %s not found with login access for %s. User created!" % (username, login_from))
            return True

        return False
Serializes a :class:`prov.model.ProvDocument` instance to a
dataset/ETHPy150Open python-provy/provy/provy/more/centos/database/mysql.py/MySQLRole.ensure_user--crossover with--dataset/ETHPy150Open trungdong/prov/prov/serializers/provn.py/ProvNSerializer.serialize