code: def launch(self, offer_id, tasks, filters=Filters()):
          
          logging.info('Launches tasks {}'.format(tasks))
          return self.driver.launchTasks(encode(offer_id),
                                         map(encode, tasks),
                                         encode(filters))
docs: Launches the given set of tasks.
  
          Any resources remaining (i.e., not used by the tasks or their executors)
          will be considered declined.
          The specified filters are applied on all unused resources (see
          mesos.proto for a description of Filters). Available resources are
          aggregated when multiple offers are provided. Note that all offers must
          belong to the same slave. Invoking this function with an empty
          collection of tasks declines the offers in entirety (see
          Scheduler.decline).
  
          Note that passing a single offer is also supported.