def name_containers(self, obj):
    if (not obj):
        return None
    if (type(obj) is not dict):
        return obj
    if ((not obj.get('version')) and (not obj.get('services'))):
        return {k: self.add_name(k, v) for (k, v) in obj.items()}
    else:
        obj['services'] = {k: self.add_name(k, v) for (k, v) in obj.get('services').items()}
        return obj
def name_containers(self, obj):
    if (not obj):
        return None
    if (type(obj) is not dict):
        return obj
    if ((not obj.get('version')) and (not obj.get('services'))):
        return {k: self.add_name(k, v) for (k, v) in obj.items()}
    else:
        obj['services'] = {k: self.add_name(k, v) for (k, v) in obj.get('services').items()}
        return obj