code: def _parse_output_keys(val):
      
      out = {}
      for k in val.split(","):
          # record output
          if ":" in k:
              name, attrs = k.split(":")
              out[name] = attrs.split(";")
          else:
              out[k] = None
      return out
docs: Parse expected output keys from string, handling records.