code: def parse_attribute(v: ast.Attribute, path=()):
      if isinstance(v.value, ast.Name):
          return {
              "__kind__": "type",
              "class": ".".join((v.value.id, v.attr) + path),
          }
      else:
          assert isinstance(v.value, ast.Attribute)
          return parse_attribute(v.value, (v.attr,) + path)
  
file_path: gluonts/src/gluonts/core/serde/_parse.py
imports: import ast
  from functools import singledispatch
label_desc: Use image node_id 12 for calling a global function with example usage: parse_attribute(v, path) and returns: dict, parse_attribute