def METHOD_NAME():
    form = {
        "class": "RecordArray",
        "fields": ["x", "y"],
        "contents": {
            "x": {
                "class": "NumpyArray",
                "primitive": "int64",
                "inner_shape": [],
                "parameters": {},
                "form_key": "node1",
            },
            "y": {
                "class": "NumpyArray",
                "primitive": "int64",
                "inner_shape": [],
                "parameters": {},
                "form_key": "node2",
            },
        },
        "parameters": {},
        "form_key": "node0",
    }
    with pytest.raises(
        TypeError, match=".*new-style RecordForm contents must not be mappings.*"
    ):
        ak.from_buffers(
            form,
            1,
            {
                "node1-data": np.array([1], dtype=np.int64),
                "node2-data": np.array([2], dtype=np.int64),
            },
        )