code: def getattr_attr_name(node):
      attribute_names = node.attributeNames()
      assert len(attribute_names) == 1
      return node.s(attribute_names[0])
  
imports: from ..None import expr
  from ..None import op
  from ..dataflow_pattern import wildcard, is_constant, is_op, rewrite, is_tuple, is_tuple_get_item, is_if, DFPatternCallback
label_desc: Use image node_id 2 for calling a global function with example usage: getattr_attr_name(node) and returns: node