def superdict()

in shap_e/models/nn/meta.py [0:0]


def superdict(dictionary, key=None):
    if dictionary is None:
        return None
    if (key is None) or (key == ""):
        return dictionary
    return AttrDict(OrderedDict((key + "." + k, value) for (k, value) in dictionary.items()))