code: def is_for_driver_task(self):
          
          return all(
              len(x) == 0
              for x in [self.module_name, self.class_name, self.function_name])
docs: See whether this function descriptor is for a driver or not.
  
          Returns:
              True if this function descriptor is for driver tasks.