code: def test_identify_names():
      code_str = """
  import os
  os
  
  os.path.join
  
  import sphinx_gallery.back_references as br
  br.identify_names
  
  from sphinx_gallery.back_references import identify_names
  identify_names
  """
      res = sg.identify_names(code_str)
      expected = {
          "os.path.join": {
              "name": "join",
              "module": "os.path",
              "module_short": "os.path",
          },
          "br.identify_names": {
              "name": "identify_names",
              "module": "sphinx_gallery.back_references",
              "module_short": "sphinx_gallery.back_references",
          },
          "identify_names": {
              "name": "identify_names",
              "module": "sphinx_gallery.back_references",
              "module_short": "sphinx_gallery.back_references",
          },
      }
  
      assert expected == res
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import sphinx_gallery.backreferences
label_desc: Use image node_id 3 for calling a global function with example usage: test_identify_names() without return types