def METHOD_NAME(self):
    if self.training_args is not None:
        for f in fields(self.training_args):
            arg_name = f.name
            arg_attr = getattr(self.training_args, f.name)
            name = f'--{arg_name}'
            kwargs = dict(type=f.type, help=f.metadata['help'])
            kwargs['default'] = arg_attr
            if 'choices' in f.metadata:
                kwargs['choices'] = f.metadata['choices']
            kwargs['action'] = SingleAction
            self.add_argument(name, **kwargs)