code: def _get_mapping(mapping):
      mapping_dict = mapping.as_dict() if mapping is not None else {}
      x_mapping_dict = {"x": _fun_x_name}
      y_mapping_dict = {"y": _fun_y_name}
  
      return aes(**{**x_mapping_dict, **mapping_dict, **y_mapping_dict})
  
imports: from .core import aes
  from .geom import _geom
label_desc: Use image node_id 4 for calling a global function with example usage: _get_mapping(mapping) and returns: aes