def METHOD_NAME(context: 'IconScoreContext') -> None:
    context_stack: List['IconScoreContext'] = getattr(_thread_local_data, 'context_stack', None)
    if context_stack is None:
        context_stack = []
        setattr(_thread_local_data, 'context_stack', context_stack)
    context_stack.append(context)