code: def getter(attr_name: Any):
      def f(obj):
          return getattr(obj, attr_name)
  
      return f
  
imports: from typing import Any
label_desc: Use image node_id 1 for calling a global function with example usage: getter(attr_name) and returns: f, getattr