code: def extract_and_set_enc_dec_kwargs(kwargs):
      enc_kwargs, dec_kwargs, kwargs = extract_enc_dec_kwargs(kwargs)
      if "mask" in enc_kwargs:
          dec_kwargs.setdefault("context_mask", enc_kwargs["mask"])
      return enc_kwargs, dec_kwargs, kwargs
  
file_path: performer-pytorch/performer_pytorch/performer_enc_dec.py
imports: import re
  import torch
  from torch import nn
  from performer_pytorch.performer_pytorch import PerformerLM
  from performer_pytorch.autoregressive_wrapper import AutoregressiveWrapper
label_desc: Use image node_id 6 for calling a global function with example usage: extract_and_set_enc_dec_kwargs(kwargs) and returns: enc_kwargs,  dec_kwargs,  kwargs