class_docstr: NodeTransformer to replace lazy attach with attach_stub.
docstr: Replace lazy attach assignment with stub assignment.
docstr_tok: ["Replace","lazy","attach","assignment","with","stub","assignment","."]
code: def visit_Assign(self, node):
      """Replace lazy attach assignment with stub assignment."""
      if not hasattr(node.targets[0], "dims"):
          return node
  
      ids = [name.id for name in node.targets[0].dims]
      if ids == ["__getattr__", "__dir__", "__all__"]:
          return ast.parse(
              "__getattr__, __dir__, __all__ = lazy.attach_stub(__name__, __file__)\n"
          )
      return node
  
file_path: mne-python/tools/dev/generate_pyi_files.py
imports: import os
  import sys
  from importlib import import_module
  from pathlib import Path
  import ast_comments
  import black
  import mne
label_desc: Use image node_id 1 for calling the RewriteAssign obj's underlying member method code with example usage: obj.visit_Assign(node) and returns: node, node, ast