code: def _wrap(val):
      if isinstance(val, dict):
          return AttributeDict(val)
      return val
  
imports: from __future__ import annotations
  from typing import Iterator
label_desc: Use image node_id 1 for calling a global function with example usage: _wrap(val) and returns: val, AttributeDict