code: def set_in_environ(environ, ctx):
      """Set the `RequestContext` in a WSGI environment.
  
      After `set_in_environ(e, ctx)`, `from_environ(e) is ctx`. The input
      environment is mutated.
  
      Args:
        environ: A WSGI environment to update.
        ctx: A new `RequestContext` value.
      """
      environ[_WSGI_KEY] = ctx
  
file_path: tensorboard/tensorboard/context.py
imports: from tensorboard import auth
label_desc: Use image node_id 2 for calling a global function with example usage: set_in_environ(environ, ctx) without return types