<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def namespace(self, value):
 """Update the query's namespace. :type value: str """

        if not isinstance(value, str):
            raise ValueError("Namespace must be a string")
        self._namespace = value