code: def planner(self, *, resource=''):
          
  
          if not isinstance(self.protocol, MSGraphProtocol):
              # TODO: Custom protocol accessing OneDrive/Sharepoint Api fails here
              raise RuntimeError(
                  'planner api only works on Microsoft Graph API')
  
          return Planner(parent=self, main_resource=resource)
docs: Get an instance to read information from Microsoft planner