code: def _create_attrs_from_node(node, attrs=()):
      # Attrs must be in order
      last_node = node
      for attr in attrs:
          last_node = ast.Attribute(
              value=last_node,
              attr=attr,
              ctx=ast.Load(),
          )
      return last_node
  
imports: import ast
  import os
  import sys
  import traceback
  from ast import parse
  from string import Template
  from importlib.util import spec_from_file_location
  from importlib.abc import Loader, MetaPathFinder
label_desc: Use image node_id 8 for calling a global function with example usage: _create_attrs_from_node(node, attrs) and returns: last_node