def set_context(context: str, mode: str = "both", overwrite: bool = False):

source code