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

source code