(
        self,
        as_kwargs=False,
        exclude_cls_self=False,
        exclude_labels=True,
    )
return ", {}".format(code)
Generates the code to define a function signature based on InputArgs
        used inside the conversion
Generates the code to define a function signature based on InputArgs
        used inside the conversion
Generates the code to define a function signature based on InputArgs used inside the conversion
def get_args_def_code(
        self,
        as_kwargs=False,
        exclude_cls_self=False,
        exclude_labels=True,
    ):
        """Generates the code to define a function signature based on InputArgs
        used inside the conversion"""
        args = self.get_args(
            exclude_types=(LabelConversion,) if exclude_labels else None
        )

        if exclude_cls_self:
            args = [arg for arg in args if arg.arg_name not in ("self", "cls")]
        if not args:
            return ""

        code = ", ".join(arg.arg_name for arg in args)
        if as_kwargs:
            return ", *, {}".format(code)
        return ", {}".format(code)
def get_args_def_code ( self , as_kwargs = False , exclude_cls_self = False , exclude_labels = True , ) : args = self . get_args ( exclude_types = ( LabelConversion , ) if exclude_labels else None ) if exclude_cls_self : args = [ arg for arg in args if arg . arg_name not in ( "self" , "cls" ) ] if not args : return "" code = ", " . join ( arg . arg_name for arg in args ) if as_kwargs : return ", *, {}" . format ( code ) return ", {}" . format ( code )