code: def get_mask(
      condition,
  ):  # FIXME: gets None if is None *and* if no mask
      """get mask from termination condition"""
      condition = _term.state(condition)
      if not condition:
          return None
      if isinstance(condition, tuple):
          return None
      condition = condition.popitem()[-1]
      return condition["mask"] if "mask" in condition else None
  
file_path: mystic/mystic/mask.py
imports: import mystic.termination
label_desc: Use image node_id 1 for calling a global function with example usage: get_mask(condition) and returns: unknown, None, None