class_docstr: Finds the longest form of variable names and their imports in code
  
  Only retains names from imported modules.
code: def visit_Attribute(self, node):
      attrs = []
      while isinstance(node, ast.Attribute):
          attrs.append(node.attr)
          node = node.value
  
      if isinstance(node, ast.Name):
          # This is a.b, not e.g. a().b
          attrs.append(node.id)
          self.accessed_names.add(".".join(reversed(attrs)))
      else:
          # need to get a in a().b
          self.visit(node)
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/backreferences.py
imports: from __future__ import print_function
  import ast
  import os
label_desc: Use image node_id 5 for calling the NameFinder obj's underlying member method code with example usage: obj.visit_Attribute(node) without return types