

def _get_all_custom_defs(self, imports=None):
    types = [IMPORTS, NODE_TYPES, CAPABILITY_TYPES, RELATIONSHIP_TYPES, DATA_TYPES, POLICY_TYPES, GROUP_TYPES]
    custom_defs_final = {
        
    }
    custom_defs = self._get_custom_types(types, imports)
    if custom_defs:
        custom_defs_final.update(custom_defs)
        if custom_defs.get(IMPORTS):
            import_defs = self._get_all_custom_defs(custom_defs.get(IMPORTS))
            custom_defs_final.update(import_defs)
    import_defs.pop(IMPORTS, None)
    return custom_defs_final

dataset/ETHPy150Open openstack/tosca-parser/toscaparser/tosca_template.py ToscaTemplate._get_all_custom_defs/VarMisuse@95/152 `custom_defs_final`->`import_defs`