code: def test_parse_payload(
      payload: Mapping[str, Any],
      raises: bool,
  ) -> None:
      if raises:
          with pytest.raises(Exception):
              parse_payload(payload)
      else:
          parse_payload(payload)
  
imports: from collections.abc import Mapping
  from typing import Any
  from unittest.mock import patch
  import pytest
  from api.routes.webhook import MoonWebhookV2Payload, parse_payload, process_payload
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_payload(payload, raises) without return types