parameters: (fn)
return_statement: return fn
docstring: Add the function `fn` to the list of exported attributes of this
      module, `__all__`.
  
      Args:
          fn: the function or class to export.
docstring_summary: Add the function `fn` to the list of exported attributes of this
      module, `__all__`.
docstring_tokens: Add the function fn to the list of exported attributes of this module __all__ .
function: def export(fn):
      """
      Add the function `fn` to the list of exported attributes of this
      module, `__all__`.
  
      Args:
          fn: the function or class to export.
      """
      mod = sys.modules[fn.__module__]
      if hasattr(mod, "__all__"):
          mod.__all__.append(fn.__name__)
      else:
          mod.__all__ = [fn.__name__]
      return fn
function_tokens: def export ( fn ) : mod = sys . modules [ fn . __module__ ] if hasattr ( mod , "__all__" ) : mod . __all__ . append ( fn . __name__ ) else : mod . __all__ = [ fn . __name__ ] return fn