code: def _call_if_exists(parent, attr):
      func = getattr(parent, attr, lambda: None)
      func()
  
imports: import sys
  from .None import case
  from .None import util
label_desc: Use image node_id 1 for calling a global function with example usage: _call_if_exists(parent, attr) without return types