def METHOD_NAME(self):
    common_param_conf = {}
    for attr in self.__dict__:
        if attr.startswith("_"):
            continue
        common_param_conf[attr] = getattr(self, attr)
    return common_param_conf