def METHOD_NAME(self, args):
    if isinstance(args, str):
        return [args]
    for args_type in self.args_types_allowed:
        if isinstance(args, args_type):
            return args
    else:
        raise TypeError("Invalid format of args; one of <%s> expected" % repr(self.args_types_allowed))