def get_curr_scopes(self) -> Dict[ScopeSource, List[str]]:
        """
        Returns the current scope information as a dictionary.
        """
        res = defaultdict(list)
        for key, val in self.items():
            if len(val) == 0:
                continue
            scope_for_one_source = []
            for v in val:
                scope_for_one_source.extend(v.data)
            res[key] = scope_for_one_source
        return res

        Returns the current scope information as a dictionary.
        
coremltools/converters/mil/mil/scope.py