Hippocratic AI Interview Question

How would you implement causal masking for transformers in pytorch.