code: def has_api_scope_with_prefix(self, prefix):
          
          if self._authorized_api_scopes is None:
              return None
          return any(
              x == prefix or x.startswith(prefix + '.')
              for x in self._authorized_api_scopes)
docs: Test if there is an API scope with the given prefix.
  
          :rtype: bool|None