code: def get_hosting_device_driver(self, context, id):
          
          if id is None:
              return
          try:
              return self._hosting_device_drivers[id]
          except KeyError:
              try:
                  template = self._get_hosting_device_template(context, id)
                  self._hosting_device_drivers[id] = importutils.import_object(
                      template['device_driver'])
              except (ImportError, TypeError, n_exc.NeutronException):
                  LOG.exception("Error loading hosting device driver for "
                                "hosting device template %s", id)
              return self._hosting_device_drivers.get(id)
docs: Returns device driver for hosting device template with <id>.