code: def replace_none(elem: Optional[Any], default: Any):
      """If elem is None, return default, else return elem
  
      Args:
          elem: element to possibly return
          default: default element
  
      Returns:
          elem, or default
  
      """
      if elem is None:
          return default
      else:
          return elem
  
label_desc: Use image node_id 1 for calling a global function with example usage: replace_none(elem, default) and returns: default, elem