parameters: (stacktrace, base_case)
return_statement: return stacktrace[-1:]
docstring: Skips items that the target stacktrace shares with the base stacktrace.
docstring_summary: Skips items that the target stacktrace shares with the base stacktrace.
docstring_tokens: Skips items that the target stacktrace shares with the base stacktrace .
function: def _skip_common_stack_elements(stacktrace, base_case):
    """Skips items that the target stacktrace shares with the base stacktrace."""
    for i, (trace, base) in enumerate(zip(stacktrace, base_case)):
      if trace != base:
        return stacktrace[i:]
    return stacktrace[-1:]
function_tokens: def _skip_common_stack_elements ( stacktrace , base_case ) : for i , ( trace , base ) in enumerate ( zip ( stacktrace , base_case ) ) : if trace != base : return stacktrace [ i : ] return stacktrace [ - 1 : ]