<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_include(self, name, included_scope, module):
 """Register an imported module into this scope. Raises ``ThriftCompilerError`` if the name has already been used. """

        # The compiler already ensures this. If we still get here with a
        # conflict, that's a bug.
        assert name not in self.included_scopes

        self.included_scopes[name] = included_scope
        self.add_surface(name, module)