code: def request(self, requests):
          
          logging.info('Request resources from Mesos')
          return self.driver.requestResources(map(encode, requests))
docs: Requests resources from Mesos.
  
          (see mesos.proto for a description of Request and how, for example, to
          request resources from specific slaves.)
  
          Any resources available are offered to the framework via
          Scheduler.resourceOffers callback, asynchronously.