code: def test_post_broken_yaml(client: TestClient):
      yaml_data = """
          name: Deadpoolio
          tags:
          x - x-force
          x - x-men
          x - x-avengers
          """
      response = client.post("/items/", content=yaml_data)
      assert response.status_code == 422, response.text
      assert response.json() == {"detail": "Invalid YAML"}
  
imports: import pytest
  from fastapi.testclient import TestClient
  from ...utils import needs_pydanticv1
label_desc: Use image node_id 3 for calling a global function with example usage: test_post_broken_yaml(client) without return types