from dataclasses import dataclass, field


@dataclass
class FooTest:
    class Meta:
        name = "fooTest"

    value: str = field(
        init=False,
        default="Hello"
    )


@dataclass
class Root:
    class Meta:
        name = "root"

    foo_test: str = field(
        init=False,
        default="Hello",
        metadata={
            "name": "fooTest",
            "type": "Element",
            "required": True,
        }
    )

[((128, 162), 'dataclasses.field', 'field', ([], {'init': '(False)', 'default': '"""Hello"""'}), "(init=False, default='Hello')\n", (133, 162), False, 'from dataclasses import dataclass, field\n'), ((269, 374), 'dataclasses.field', 'field', ([], {'init': '(False)', 'default': '"""Hello"""', 'metadata': "{'name': 'fooTest', 'type': 'Element', 'required': True}"}), "(init=False, default='Hello', metadata={'name': 'fooTest', 'type':\n    'Element', 'required': True})\n", (274, 374), False, 'from dataclasses import dataclass, field\n')]