@classmethod
def setup(cls: Type[Dataclass], arguments: Optional[str]='', dest: Optional[str]=None, default: Optional[Dataclass]=None, conflict_resolution_mode: ConflictResolution=ConflictResolution.AUTO, add_option_string_dash_variants: DashVariant=DashVariant.AUTO, parse_known_args: bool=False, attempt_to_reorder: bool=False, *, argument_generation_mode: ArgumentGenerationMode=ArgumentGenerationMode.FLAT, nested_mode: NestedMode=NestedMode.DEFAULT) -> Dataclass:
    'Basic setup for a test.\n\n        Keyword Arguments:\n            arguments {Optional[str]} -- The arguments to pass to the parser (default: {""})\n            dest {Optional[str]} -- the attribute where the argument should be stored. (default: {None})\n\n        Returns:\n            {cls}} -- the class\'s type.\n        '
    parser = simple_parsing.ArgumentParser(conflict_resolution=conflict_resolution_mode, add_option_string_dash_variants=add_option_string_dash_variants, argument_generation_mode=argument_generation_mode, nested_mode=nested_mode)
    if (dest is None):
        dest = camel_case(cls.__name__)
    parser.add_arguments(cls, dest=dest, default=default)
    if (arguments is None):
        if parse_known_args:
            args = parser.parse_known_args(attempt_to_reorder=attempt_to_reorder)
        else:
            args = parser.parse_args()
    else:
        splits = shlex.split(arguments)
        if parse_known_args:
            (args, unknown_args) = parser.parse_known_args(splits, attempt_to_reorder=attempt_to_reorder)
        else:
            args = parser.parse_args(splits)
    assert hasattr(args, dest), f"attribute '{dest}' not found in args {args}"
    instance: Dataclass = getattr(args, dest)
    delattr(args, dest)
    args_dict = vars(args).copy()
    args_dict.pop('subgroups', None)
    assert (not args_dict), f'Namespace has leftover garbage values (besides subgroups): {args}'
    instance = cast(Dataclass, instance)
    return instance
Basic setup for a test.

Keyword Arguments:
    arguments {Optional[str]} -- The arguments to pass to the parser (default: {""})
    dest {Optional[str]} -- the attribute where the argument should be stored. (default: {None})

Returns:
    {cls}} -- the class's type.
@classmethod
def setup(cls: Type[Dataclass], arguments: Optional[str]=, dest: Optional[str]=None, default: Optional[Dataclass]=None, conflict_resolution_mode: ConflictResolution=ConflictResolution.AUTO, add_option_string_dash_variants: DashVariant=DashVariant.AUTO, parse_known_args: bool=False, attempt_to_reorder: bool=False, *, argument_generation_mode: ArgumentGenerationMode=ArgumentGenerationMode.FLAT, nested_mode: NestedMode=NestedMode.DEFAULT) -> Dataclass:
    'Basic setup for a test.\n\n        Keyword Arguments:\n            arguments {Optional[str]} -- The arguments to pass to the parser (default: {})\n            dest {Optional[str]} -- the attribute where the argument should be stored. (default: {None})\n\n        Returns:\n            {cls}} -- the class\'s type.\n        '
    parser = simple_parsing.ArgumentParser(conflict_resolution=conflict_resolution_mode, add_option_string_dash_variants=add_option_string_dash_variants, argument_generation_mode=argument_generation_mode, nested_mode=nested_mode)
    if (dest is None):
        dest = camel_case(cls.__name__)
    parser.add_arguments(cls, dest=dest, default=default)
    if (arguments is None):
        if parse_known_args:
            args = parser.parse_known_args(attempt_to_reorder=attempt_to_reorder)
        else:
            args = parser.parse_args()
    else:
        splits = shlex.split(arguments)
        if parse_known_args:
            (args, unknown_args) = parser.parse_known_args(splits, attempt_to_reorder=attempt_to_reorder)
        else:
            args = parser.parse_args(splits)
    assert hasattr(args, dest), f"attribute '{dest}' not found in args {args}"
    instance: Dataclass = getattr(args, dest)
    delattr(args, dest)
    args_dict = vars(args).copy()
    args_dict.pop('subgroups', None)
    assert (not args_dict), f'Namespace has leftover garbage values (besides subgroups): {args}'
    instance = cast(Dataclass, instance)
    return instance