class_docstr: Finds the longest form of variable names and their imports in code
  
  Only retains names from imported modules.
code: def get_mapping(self):
      for name in self.accessed_names:
          local_name = name.split(".", 1)[0]
          remainder = name[len(local_name) :]
          if local_name in self.imported_names:
              # Join import path to relative path
              full_name = self.imported_names[local_name] + remainder
              yield name, full_name
  
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 6 for calling the NameFinder obj's underlying member method code with example usage: obj.get_mapping() without return types