parameters: (self, *stop_types)
return_statement: return last
docstring: Pops the context stack until a context of the given type is popped.
  
      Args:
        *stop_types: The types of context to pop to - stops at the first match.
  
      Returns:
        The context object of the given type that was popped.
docstring_summary: Pops the context stack until a context of the given type is popped.
docstring_tokens: Pops the context stack until a context of the given type is popped .
function: def _PopContextType(self, *stop_types):
      """Pops the context stack until a context of the given type is popped.
  
      Args:
        *stop_types: The types of context to pop to - stops at the first match.
  
      Returns:
        The context object of the given type that was popped.
      """
      last = None
      while not last or last.type not in stop_types:
        last = self._PopContext()
      return last
function_tokens: def _PopContextType ( self , * stop_types ) : last = None while not last or last . type not in stop_types : last = self . _PopContext ( ) return last