code: def _pop_import_LOAD_ATTRs(module_name, queue):
      
      popped = popwhile(is_a(instrs.LOAD_ATTR), queue, side='left')
      if popped:
          expected = module_name.split('.', maxsplit=1)[1]
          actual = '.'.join(map(op.attrgetter('arg'), popped))
          if expected != actual:
              raise DecompilationError(
                  "Decompiling import of module %s, but LOAD_ATTRS imply %s" % (
                      expected, actual,
                  )
              )
      return popped
docs: Pop LOAD_ATTR instructions for an import of the form::
  
          import a.b.c as d
  
      which should generate bytecode like this::
  
          1           0 LOAD_CONST               0 (0)
                      3 LOAD_CONST               1 (None)
                      6 IMPORT_NAME              0 (a.b.c.d)
                      9 LOAD_ATTR                1 (b)
                     12 LOAD_ATTR                2 (c)
                     15 LOAD_ATTR                3 (d)
                     18 STORE_NAME               3 (d)