'Return all imported php blobs for the given element
@param elem {Element} The element to find imports from.
@param imported_blobs {dict} key: import name, value: imported blob'

def _get_all_import_blobs_dict_for_elem(self, elem, imported_blobs):

    for imp_elem in (i for i in elem if (i.tag == 'import')):
        module_name = imp_elem.get('module')
        self.debug('_get_all_import_blobs_dict_for_elem::    Getting    imports    from    %r', module_name)
        if (module_name and (module_name not in imported_blobs)):
            import_blob = self._get_import_blob_with_module_name(module_name)
            if (import_blob is not None):
                imported_blobs[module_name] = import_blob
                self._get_all_import_blobs_dict_for_elem(import_blob, imported_blobs)
        else:
            self.debug('_get_all_import_blobs_dict_for_elem::    Recursive    import:    Already    imported    module:    %r', module_name)
