code: def generate(self, api):
          
          with self.output_to_relative_path('ex1.out'):
              for namespace in api.namespaces.values():
                  self.emit(namespace.name)
docs: Generates a file that lists each namespace.