code: def _get_annotations(self, text, language=''):
      
      body = {
          'document': {
              'type': 'PLAIN_TEXT',
              'content': text,
          },
          'features': {
              'extract_syntax': True,
          },
          'encodingType': 'UTF32',
      }
      if language:
        body['document']['language'] = language
  
      request = self.service.documents().annotateText(body=body)
      response = request.execute()
      tokens = response.get('tokens', [])
      language = response.get('language')
  
      return {'tokens': tokens, 'language': language}
docs: Returns the list of annotations retrieved from the given text.
  
      Args:
        text (str): Input text.
        language (:obj:`str`, optional): Language code.
  
      Returns:
        Results in a dictionary. :code:`tokens` contains the list of annotations
        and :code:`language` contains the inferred language from the input.