code: def declare_example(self, source):
          
          with patch_modules():
              code = compile(source, "<docs>", "exec")
              exec(code, self.namespace)
docs: Execute the given code, adding it to the runner's namespace.